|
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
6 | 6 | xmlns:local="clr-namespace:UnityLauncherPro"
|
7 | 7 | mc:Ignorable="d"
|
8 |
| - Title="Upgrade Project Version" Height="533.165" Width="418.684" Background="{DynamicResource DarkestBackground}" MinWidth="319" MinHeight="555" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" HorizontalAlignment="Left" VerticalAlignment="Top" PreviewKeyDown="Window_PreviewKeyDown" ShowInTaskbar="False"> |
| 8 | + Title="Upgrade Project Version" Height="533.165" Width="418.684" Background="{DynamicResource ThemeDarkestBackground}" MinWidth="319" MinHeight="555" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" HorizontalAlignment="Left" VerticalAlignment="Top" PreviewKeyDown="Window_PreviewKeyDown" ShowInTaskbar="False"> |
9 | 9 | <Window.Resources>
|
10 | 10 | <!-- custom buttons -->
|
11 | 11 | <Style x:Key="CustomButton" TargetType="{x:Type Button}">
|
|
34 | 34 |
|
35 | 35 | <!-- datagrid rows & row selection -->
|
36 | 36 | <Style TargetType="DataGridRow">
|
37 |
| - <Setter Property="Background" Value="{StaticResource ButtonBackground}" /> |
| 37 | + <Setter Property="Background" Value="{StaticResource ThemeButtonBackground}" /> |
38 | 38 | <Setter Property="BorderBrush" Value="{x:Null}" />
|
39 | 39 | <Setter Property="BorderThickness" Value="0,0,0,0" />
|
40 | 40 | <Style.Triggers>
|
41 | 41 | <!--<Trigger Property="IsMouseOver" Value="True">
|
42 | 42 | <Setter Property="Background" Value="{StaticResource DataGridRowMouseOver}"/>
|
43 | 43 | </Trigger>-->
|
44 | 44 | <Trigger Property="IsSelected" Value="True">
|
45 |
| - <Setter Property="Background" Value="{StaticResource DataGridRowSelectedBackground}" /> |
| 45 | + <Setter Property="Background" Value="{StaticResource ThemeDataGridRowSelectedBackground}" /> |
46 | 46 | </Trigger>
|
47 | 47 | </Style.Triggers>
|
48 | 48 | </Style>
|
|
73 | 73 | <Setter.Value>
|
74 | 74 | <ControlTemplate TargetType="{x:Type RepeatButton}">
|
75 | 75 | <!-- button background -->
|
76 |
| - <Border Name="Border" Margin="1" CornerRadius="0" BorderThickness="0" Background="{DynamicResource ButtonBackground}" BorderBrush="{x:Null}"> |
| 76 | + <Border Name="Border" Margin="1" CornerRadius="0" BorderThickness="0" Background="{DynamicResource ThemeButtonBackground}" BorderBrush="{x:Null}"> |
77 | 77 | <!-- arrow sign -->
|
78 |
| - <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="{DynamicResource ScrollArrowForeground}" Data="{Binding Path=Content,RelativeSource={RelativeSource TemplatedParent}}" /> |
| 78 | + <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="{DynamicResource ThemeScrollArrowForeground}" Data="{Binding Path=Content,RelativeSource={RelativeSource TemplatedParent}}" /> |
79 | 79 | </Border>
|
80 | 80 | <ControlTemplate.Triggers>
|
81 | 81 | <!-- NOTE order matters, if pressed is before mouseover, then it gets overwritten -->
|
82 | 82 | <Trigger Property="IsMouseOver" Value="true">
|
83 |
| - <Setter TargetName="Border" Property="Background" Value="{StaticResource TextBoxBackground}" /> |
| 83 | + <Setter TargetName="Border" Property="Background" Value="{StaticResource ThemeTextBoxBackground}" /> |
84 | 84 | </Trigger>
|
85 | 85 | <Trigger Property="IsPressed" Value="true">
|
86 |
| - <Setter TargetName="Border" Property="Background" Value="{StaticResource ScrollArrowPressed}" /> |
| 86 | + <Setter TargetName="Border" Property="Background" Value="{StaticResource ThemeScrollArrowPressed}" /> |
87 | 87 | </Trigger>
|
88 | 88 | <Trigger Property="IsEnabled" Value="false">
|
89 | 89 | <Setter Property="Foreground" Value="Black"/>
|
|
120 | 120 | <Border Name="Border" CornerRadius="0" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" />
|
121 | 121 | <ControlTemplate.Triggers>
|
122 | 122 | <Trigger Property="IsMouseOver" Value="true">
|
123 |
| - <Setter TargetName="Border" Property="Background" Value="{StaticResource ScrollBarThumbFill}" /> |
| 123 | + <Setter TargetName="Border" Property="Background" Value="{StaticResource ThemeScrollBarThumbFill}" /> |
124 | 124 | </Trigger>
|
125 | 125 | </ControlTemplate.Triggers>
|
126 | 126 | </ControlTemplate>
|
|
173 | 173 |
|
174 | 174 | </Window.Resources>
|
175 | 175 | <Grid>
|
176 |
| - <Label x:Name="lblCurrentVersion" Content="Project Current Version" HorizontalAlignment="Left" Margin="9,11,0,0" VerticalAlignment="Top" Foreground="{DynamicResource ButtonForeground}" Width="139"/> |
177 |
| - <TextBox MinWidth="100" CaretBrush="#FFE2E2E2" x:Name="txtCurrentVersion" Background="{DynamicResource DarkMenuBar}" BorderBrush="{x:Null}" Foreground="#FFC7C7C7" SelectionBrush="#FF003966" BorderThickness="0" Margin="173,16,37,0" UndoLimit="64" Text="Version" IsReadOnly="True" VerticalAlignment="Top" /> |
| 176 | + <Label x:Name="lblCurrentVersion" Content="Project Current Version" HorizontalAlignment="Left" Margin="9,11,0,0" VerticalAlignment="Top" Foreground="{DynamicResource ThemeButtonForeground}" Width="139"/> |
| 177 | + <TextBox MinWidth="100" CaretBrush="#FFE2E2E2" x:Name="txtCurrentVersion" Background="{DynamicResource ThemeDarkMenuBar}" BorderBrush="{x:Null}" Foreground="#FFC7C7C7" SelectionBrush="#FF003966" BorderThickness="0" Margin="173,16,37,0" UndoLimit="64" Text="Version" IsReadOnly="True" VerticalAlignment="Top" /> |
178 | 178 |
|
179 |
| - <Label x:Name="lblAvailableVersions" Content="Available Unity Versions" HorizontalAlignment="Left" Margin="9,94,0,0" VerticalAlignment="Top" Foreground="{DynamicResource ButtonForeground}"/> |
180 |
| - <Button Style="{StaticResource CustomButton}" x:Name="btnDownload" Background="{DynamicResource ButtonBackground}" Foreground="#FFC1C1C1" Margin="0,47,8,0" BorderBrush="{x:Null}" HorizontalAlignment="Right" VerticalAlignment="Top" Height="35" Click="BtnDownload_Click" > |
181 |
| - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Download in Browser"/> |
| 179 | + <Label x:Name="lblAvailableVersions" Content="Available Unity Versions" HorizontalAlignment="Left" Margin="9,94,0,0" VerticalAlignment="Top" Foreground="{DynamicResource ThemeButtonForeground}"/> |
| 180 | + <Button Style="{StaticResource CustomButton}" x:Name="btnDownload" Background="{DynamicResource ThemeButtonBackground}" Foreground="#FFC1C1C1" Margin="0,47,8,0" BorderBrush="{x:Null}" HorizontalAlignment="Right" VerticalAlignment="Top" Height="35" Click="BtnDownload_Click" > |
| 181 | + <Label Foreground="{DynamicResource ThemeButtonForeground}" Content="_Download in Browser"/> |
182 | 182 | </Button>
|
183 |
| - <Button Style="{StaticResource CustomButton}" x:Name="btnOpenReleasePage" Background="{DynamicResource ButtonBackground}" Foreground="#FFC1C1C1" Margin="9,47,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Height="35" Click="BtnOpenReleasePage_Click" > |
184 |
| - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Open Release Page"/> |
| 183 | + <Button Style="{StaticResource CustomButton}" x:Name="btnOpenReleasePage" Background="{DynamicResource ThemeButtonBackground}" Foreground="#FFC1C1C1" Margin="9,47,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Height="35" Click="BtnOpenReleasePage_Click" > |
| 184 | + <Label Foreground="{DynamicResource ThemeButtonForeground}" Content="_Open Release Page"/> |
185 | 185 | </Button>
|
186 |
| - <Button Style="{StaticResource CustomButton}" x:Name="btnCancelUpgrade" Background="{DynamicResource ButtonBackground}" Foreground="#FFC1C1C1" Margin="9,434,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" Width="111" VerticalAlignment="Top" Height="51" Click="BtnCancelUpgrade_Click" > |
187 |
| - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Cancel"/> |
| 186 | + <Button Style="{StaticResource CustomButton}" x:Name="btnCancelUpgrade" Background="{DynamicResource ThemeButtonBackground}" Foreground="#FFC1C1C1" Margin="9,434,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" Width="111" VerticalAlignment="Top" Height="51" Click="BtnCancelUpgrade_Click" > |
| 187 | + <Label Foreground="{DynamicResource ThemeButtonForeground}" Content="_Cancel"/> |
188 | 188 | </Button>
|
189 |
| - <Button Style="{StaticResource CustomButton}" x:Name="btnUpgradeProject" Background="{DynamicResource ButtonBackground}" Foreground="#FFC1C1C1" Margin="0,434,8,0" BorderBrush="{x:Null}" HorizontalAlignment="Right" Width="159" VerticalAlignment="Top" Height="51" Click="BtnUpgradeProject_Click" > |
190 |
| - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Upgrade Project"/> |
| 189 | + <Button Style="{StaticResource CustomButton}" x:Name="btnUpgradeProject" Background="{DynamicResource ThemeButtonBackground}" Foreground="#FFC1C1C1" Margin="0,434,8,0" BorderBrush="{x:Null}" HorizontalAlignment="Right" Width="159" VerticalAlignment="Top" Height="51" Click="BtnUpgradeProject_Click" > |
| 190 | + <Label Foreground="{DynamicResource ThemeButtonForeground}" Content="_Upgrade Project"/> |
191 | 191 | </Button>
|
192 |
| - <DataGrid x:Name="gridAvailableVersions" SelectionMode="Single" HorizontalAlignment="Left" Height="304" Margin="10,121,0,0" VerticalAlignment="Top" Width="393" HeadersVisibility="None" AutoGenerateColumns="False" IsSynchronizedWithCurrentItem="True" Foreground="{DynamicResource ButtonForeground}" Background="{DynamicResource MainBackgroundColor}" PreviewKeyDown="GridAvailableVersions_PreviewKeyDown" Loaded="GridAvailableVersions_Loaded" PreviewMouseDoubleClick="GridAvailableVersions_PreviewMouseDoubleClick"> |
| 192 | + <DataGrid x:Name="gridAvailableVersions" SelectionMode="Single" HorizontalAlignment="Left" Height="304" Margin="10,121,0,0" VerticalAlignment="Top" Width="393" HeadersVisibility="None" AutoGenerateColumns="False" IsSynchronizedWithCurrentItem="True" Foreground="{DynamicResource ThemeButtonForeground}" Background="{DynamicResource ThemeMainBackgroundColor}" PreviewKeyDown="GridAvailableVersions_PreviewKeyDown" Loaded="GridAvailableVersions_Loaded" PreviewMouseDoubleClick="GridAvailableVersions_PreviewMouseDoubleClick"> |
193 | 193 | <DataGrid.Columns>
|
194 | 194 | <DataGridTextColumn Header="Key" Binding="{Binding Key}" IsReadOnly="True" />
|
195 | 195 | <DataGridTextColumn Header="Value" Binding="{Binding Value}" IsReadOnly="True" />
|
|
0 commit comments