Repository navigation
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
162 lines (154 loc) · 7.52 KB
/
Copy pathMainWindow.xaml
File metadata and controls
162 lines (154 loc) · 7.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<Window
x:Class="Valorant_Instalocker.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:main="clr-namespace:Valorant_Instalocker.Main"
Title="Valorant Instalocker"
Width="950"
Height="700"
Background="{DynamicResource AppBackground}"
FontFamily="Segoe UI"
WindowStartupLocation="CenterScreen">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="70" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border
Grid.Row="0"
Background="{DynamicResource SurfaceBackground}"
BorderBrush="{DynamicResource DefaultBorder}"
BorderThickness="0,0,0,1">
<Grid Margin="20,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
<Border
Width="36"
Height="36"
Margin="0,0,10,0"
Background="{DynamicResource AccentPrimary}"
CornerRadius="8">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="18"
Foreground="{DynamicResource TextPrimary}"
Text="🎯" />
</Border>
<TextBlock
VerticalAlignment="Center"
FontSize="22"
FontWeight="Black"
Text="INSTALOCKER">
<TextBlock.Foreground>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Offset="0.0" Color="#EF4444" />
<GradientStop Offset="1.0" Color="#FB7185" />
</LinearGradientBrush>
</TextBlock.Foreground>
</TextBlock>
</StackPanel>
<StackPanel
Grid.Column="1"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Orientation="Horizontal">
<Button
x:Name="BtnNavDashboard"
BorderBrush="{DynamicResource AccentPrimary}"
Click="SwitchTab_Click"
Content="{DynamicResource HomeTab}"
Foreground="{DynamicResource AccentPrimary}"
Style="{StaticResource TabButton}" />
<Button
x:Name="BtnNavMacros"
Click="SwitchTab_Click"
Content="{DynamicResource MacrosTab}"
Style="{StaticResource TabButton}" />
<Button
x:Name="BtnNavSettings"
Click="SwitchTab_Click"
Content="{DynamicResource SettingsTab}"
Style="{StaticResource TabButton}" />
<Button
x:Name="BtnNavAbout"
Margin="0"
Click="SwitchTab_Click"
Content="{DynamicResource AboutTab}"
Style="{StaticResource TabButton}" />
</StackPanel>
</Grid>
</Border>
<Grid Grid.Row="1" Margin="20">
<ContentControl x:Name="MainContent" />
</Grid>
<Border
Grid.Row="1"
Margin="0,0,5,5"
Padding="8"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Background="{DynamicResource SeparatorBrush}"
BorderBrush="{DynamicResource DefaultBorder}"
BorderThickness="1"
CornerRadius="20"
RenderTransformOrigin="0.983,1.498">
<StackPanel Orientation="Horizontal">
<Ellipse Style="{StaticResource StatusCircle}" />
<TextBlock
Margin="5,0,0,0"
VerticalAlignment="Center"
FontSize="10"
Foreground="{DynamicResource TextPrimary}">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Text" Value="{DynamicResource ClientConnecting}" />
<Setter Property="Opacity" Value="1" />
<Setter Property="MaxWidth" Value="200" />
<Style.Triggers>
<DataTrigger Binding="{Binding Path=IsClientLoggedIn, Source={x:Static main:AppStateManager.Instance}}" Value="True">
<Setter Property="Text" Value="{DynamicResource ClientConnected}" />
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetProperty="Opacity"
To="0"
Duration="0:0:1.2" />
<DoubleAnimation
Storyboard.TargetProperty="MaxWidth"
To="0"
Duration="0:0:1.5">
<DoubleAnimation.EasingFunction>
<ExponentialEase EasingMode="EaseInOut" Exponent="5" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
<DataTrigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetProperty="Opacity"
To="1"
Duration="0:0:0.4" />
<DoubleAnimation
Storyboard.TargetProperty="MaxWidth"
To="200"
Duration="0:0:0.4" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.ExitActions>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</StackPanel>
</Border>
</Grid>
</Window>