|
6 | 6 | xmlns:local="clr-namespace:UnityLauncherPro" |
7 | 7 | mc:Ignorable="d" |
8 | 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 | | - |
10 | | - <Grid> |
11 | | - <Label x:Name="lblCurrentVersion" Content="Project Current Version" HorizontalAlignment="Left" Margin="9,11,0,0" VerticalAlignment="Top" Foreground="{DynamicResource ThemeButtonForeground}" Width="139"/> |
12 | | - <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" /> |
13 | 9 |
|
| 10 | + <Grid> |
| 11 | + <StackPanel Orientation="Horizontal"> |
| 12 | + <Label x:Name="lblCurrentVersion" Content="Project version:" HorizontalAlignment="Left" Margin="9,11,0,0" VerticalAlignment="Top" Foreground="{DynamicResource ThemeButtonForeground}"/> |
| 13 | + <TextBox MinWidth="100" CaretBrush="#FFE2E2E2" x:Name="txtCurrentVersion" Background="{DynamicResource ThemeDarkMenuBar}" BorderBrush="{x:Null}" Foreground="#FFC7C7C7" SelectionBrush="#FF003966" BorderThickness="0" Margin="0,16,0,0" UndoLimit="64" Text="Version" IsReadOnly="True" VerticalAlignment="Top" /> |
| 14 | + </StackPanel> |
14 | 15 | <Label x:Name="lblAvailableVersions" Content="Available Unity Versions" HorizontalAlignment="Left" Margin="9,94,0,0" VerticalAlignment="Top" Foreground="{DynamicResource ThemeButtonForeground}"/> |
15 | | - <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" > |
| 16 | + <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" Width="150" > |
16 | 17 | <Label Foreground="{DynamicResource ThemeButtonForeground}" Content="_Download in Browser"/> |
17 | | - </Button> |
18 | | - <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" > |
19 | | - <Label Foreground="{DynamicResource ThemeButtonForeground}" Content="_Open Release Page"/> |
20 | | - </Button> |
| 18 | + </Button> |
| 19 | + <Button Style="{StaticResource CustomButton}" x:Name="btnOpenReleasePage" ToolTip="Open Release Notes Page in Browser" Background="{DynamicResource ThemeButtonBackground}" Foreground="#FFC1C1C1" Margin="9,47,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Height="35" Click="BtnOpenReleasePage_Click" Width="150" > |
| 20 | + <Label Foreground="{DynamicResource ThemeButtonForeground}" Content="_Open Release Notes"/> |
| 21 | + </Button> |
21 | 22 | <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" > |
22 | 23 | <Label Foreground="{DynamicResource ThemeButtonForeground}" Content="_Cancel"/> |
23 | | - </Button> |
24 | | - <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" > |
| 24 | + </Button> |
| 25 | + <Button Style="{StaticResource CustomButton}" x:Name="btnUpgradeProject" ToolTip="Launch with selected Unity version" Background="{DynamicResource ThemeButtonBackground}" Foreground="#FFC1C1C1" Margin="0,434,8,0" BorderBrush="{x:Null}" HorizontalAlignment="Right" Width="159" VerticalAlignment="Top" Height="51" Click="BtnUpgradeProject_Click" > |
25 | 26 | <Label Foreground="{DynamicResource ThemeButtonForeground}" Content="_Upgrade Project"/> |
26 | | - </Button> |
| 27 | + </Button> |
27 | 28 | <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" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled"> |
28 | | - <DataGrid.Columns> |
29 | | - <DataGridTextColumn Header="Key" Binding="{Binding Key}" IsReadOnly="True" /> |
30 | | - <DataGridTextColumn Header="Value" Binding="{Binding Value}" IsReadOnly="True" /> |
31 | | - </DataGrid.Columns> |
32 | | - </DataGrid> |
| 29 | + <DataGrid.Columns> |
| 30 | + <DataGridTextColumn Header="Key" Binding="{Binding Key}" IsReadOnly="True" /> |
| 31 | + <DataGridTextColumn Header="Value" Binding="{Binding Value}" IsReadOnly="True" /> |
| 32 | + </DataGrid.Columns> |
| 33 | + </DataGrid> |
33 | 34 |
|
34 | | - </Grid> |
| 35 | + </Grid> |
35 | 36 | </Window> |
0 commit comments