-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSK_LU_GUI.xml
216 lines (205 loc) · 12.9 KB
/
SK_LU_GUI.xml
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<Window x:Class="SKLU.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SKLU" mc:Ignorable="d" Title="SK LU"
Foreground="White" Background="#1a1a1a"
MinHeight="240" MinWidth="521"
Width="640" Height="Auto" SizeToContent="Height"
WindowStartupLocation="CenterScreen" TextOptions.TextFormattingMode="Display" SnapsToDevicePixels="True"
FontFamily="Segoe UI" FontSize="13" ShowInTaskbar="True">
<Window.Resources>
<Style x:Key="DarkTheme" TargetType="{x:Type Control}">
<Setter Property="Foreground" Value="White" />
<Setter Property="Background" Value="#141414" />
<Style.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="0" />
</Style>
</Style.Resources>
</Style>
<Style x:Key="LightTheme" TargetType="{x:Type Control}">
<Setter Property="Foreground" Value="Black" />
<Setter Property="Background" Value="#f2f2f2" />
<Style.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="0" />
</Style>
</Style.Resources>
</Style>
<Style x:Key="DarkThemeButton" TargetType="{x:Type Button}" BasedOn="{StaticResource DarkTheme}">
<Setter Property="Background" Value="#333333" />
<Setter Property="BorderBrush" Value="#434343" />
<Setter Property="Margin" Value="10,0,10,10" />
<Setter Property="Padding" Value="5" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="Black" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="LightThemeButton" TargetType="{x:Type Button}" BasedOn="{StaticResource LightTheme}">
<Setter Property="Background" Value="#d9d9d9" />
<Setter Property="BorderBrush" Value="#c9c9c9" />
<Setter Property="Margin" Value="10,0,10,10" />
<Setter Property="Padding" Value="5" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="Black" />
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type DataGrid}" BasedOn="{StaticResource DarkTheme}">
<Setter Property="HorizontalGridLinesBrush" Value="#585858" />
<Setter Property="VerticalGridLinesBrush" Value="#585858" />
<Setter Property="BorderBrush" Value="#585858" />
<Setter Property="Margin" Value="10" />
<Setter Property="Padding" Value="4,8,4,8" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="RowHeight" Value="30" />
</Style>
<Style TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource DarkTheme}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#2b2b2b" />
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource DarkTheme}">
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="FontWeight" Value="Bold" />
</Style>
<Style TargetType="DataGridRowHeader" BasedOn="{StaticResource DarkTheme}"></Style>
<Style TargetType="DataGridCell" BasedOn="{StaticResource DarkTheme}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Grid Background="{TemplateBinding Background}">
<ContentPresenter VerticalAlignment="Center" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Padding" Value="40" />
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Text="Special K" HorizontalAlignment="Left" Margin="10,5,0,5" VerticalAlignment="Top" Padding="0,0,0,0" FontWeight="Bold" />
<TextBlock x:Name="Version" HorizontalAlignment="Right" Margin="120,5,10,5" VerticalAlignment="Top" Text="$version" />
<TextBlock x:Name="Update" Margin="220,25,10,0" TextWrapping="Wrap" HorizontalAlignment="Right" TextAlignment="Right" />
<TextBlock Text="Selected variant:" HorizontalAlignment="Left" Margin="10,25,0,0" VerticalAlignment="Top" Padding="0,5,0,5" />
<ComboBox x:Name="VariantsComboBox" MinWidth="95" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,52,10,0" MaxWidth="200" />
<DataGrid x:Name="Games" Grid.Row="1" AutoGenerateColumns="False">
<DataGrid.Columns>
<DataGridTemplateColumn MinWidth="30" MaxWidth="30">
<DataGridTemplateColumn.Header>
<CheckBox x:Name="CheckboxSelectAll" IsChecked="True" />
</DataGridTemplateColumn.Header>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<CheckBox HorizontalAlignment="Center" IsChecked="{Binding Path=IsChecked, UpdateSourceTrigger=PropertyChanged}" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="Directory" MinWidth="70" Width="*" IsReadOnly="True">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Button Content="{Binding Path=Directory}" x:Name="PathText">
<Button.Style>
<Style TargetType="{x:Type Button}" BasedOn="{StaticResource DarkThemeButton}" >
<Setter Property="BorderBrush" Value="transparent" />
<Setter Property="Background" Value="transparent" />
<Setter Property="Margin" Value="10,0,10,0" />
<Setter Property="ToolTip" Value="Open Folder in Explorer" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="§VersionForeground§" />
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Header="Name" Binding="{Binding Path=Name}" MinWidth="70" Width="Auto" MaxWidth="100" IsReadOnly="True">
<DataGridTextColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="TextAlignment" Value="Center" />
<Setter Property="Margin" Value="10,0,10,0" />
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
<DataGridTextColumn Header="Bits" Binding="{Binding Path=Bits}" MinWidth="35" MaxWidth="35" IsReadOnly="True">
<DataGridTextColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="TextAlignment" Value="Center" />
<Setter Property="Margin" Value="10,0,10,0" />
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
<DataGridTextColumn x:Name="VersionColumn" Header="Version" Binding="{Binding Path=Version}" MinWidth="60" Width="Auto" MaxWidth="80" IsReadOnly="True">
<DataGridTextColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}">
<Style.Triggers>
<Trigger Property="Text" Value="NewestRemote">
<Setter Property="Foreground" Value="Green" />
</Trigger>
<Trigger Property="Text" Value="NewestLocal">
<Setter Property="Foreground" Value="§VersionForeground§" />
</Trigger>
</Style.Triggers>
<Setter Property="Foreground" Value="Orange" />
<Setter Property="TextAlignment" Value="Center" />
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
<Button x:Name="UpdateButton" Content="Update" Style="{StaticResource DarkThemeButton}" Grid.Row="2" HorizontalAlignment="Right" MinWidth="75" ToolTipService.ShowDuration="10000" ToolTipService.Placement="Top">
<Button.ToolTip>
<TextBlock>
Copys the current selected variant to the checked locations.
</TextBlock>
</Button.ToolTip>
</Button>
<Button x:Name="RefreshButton" Content="Refresh" Style="{StaticResource DarkThemeButton}" Grid.Row="2" HorizontalAlignment="Left" MinWidth="75" ToolTipService.ShowDuration="10000" ToolTipService.Placement="Top">
<Button.ToolTip>
<TextBlock>Refreshes the list from cache.</TextBlock>
</Button.ToolTip>
</Button>
<Button x:Name="ScanButton" Content="Full Scan" Style="{StaticResource DarkThemeButton}" Grid.Row="2" HorizontalAlignment="Left" MinWidth="75" ToolTipService.ShowDuration="10000" ToolTipService.Placement="Top" Margin="90,0,10,10">
<Button.ToolTip>
<TextBlock>Scans alls known game folders for local Special K installations and updates the cache of known dlls. <LineBreak /> Can take a long time!</TextBlock>
</Button.ToolTip>
</Button>
<Button x:Name="TaskButton" Content="Automatic Update" Style="{StaticResource DarkThemeButton}" Grid.Row="2" HorizontalAlignment="Center" MinWidth="75" ToolTipService.ShowDuration="10000" ToolTipService.Placement="Top">
<Button.ToolTip>
<TextBlock> Enables automatic update of known dlls (except blacklisted) via sheduled task. <LineBreak /> Known dlls are all cached dlls from the last scan and AdditionalDLLs from the settings file. <LineBreak /> Please edit the
settings file (SK_LU_settings.json) to set blacklisted and additional dlls.</TextBlock>
</Button.ToolTip>
</Button>
<Button x:Name="DeleteButton" Content="Delete" Style="{StaticResource DarkThemeButton}" Grid.Row="2" HorizontalAlignment="Right" MinWidth="75" ToolTipService.ShowDuration="10000" ToolTipService.Placement="Top" Margin="0,0,90,10">
<Button.ToolTip>
<TextBlock>Deletes all selected DLLs.</TextBlock>
</Button.ToolTip>
</Button>
</Grid>
</Window>