-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangelogDialog.axaml
More file actions
90 lines (85 loc) · 5.37 KB
/
ChangelogDialog.axaml
File metadata and controls
90 lines (85 loc) · 5.37 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
<Window xmlns="https://github.com/avaloniaui"
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:i="https://github.com/projektanker/icons.avalonia"
xmlns:loc="clr-namespace:JustLauncher.Resources"
mc:Ignorable="d" d:DesignWidth="700" d:DesignHeight="600"
x:Class="JustLauncher.ChangelogDialog"
Width="700" Height="600"
Title="{loc:Localize Key=Update_NewVersionAvailable}"
WindowStartupLocation="CenterOwner"
CanResize="False"
Background="Transparent">
<Border Background="{DynamicResource ContentBackground}"
CornerRadius="24"
BorderBrush="{DynamicResource BorderBrush}"
BorderThickness="1"
BoxShadow="0 12 32 0 #50000000"
Margin="20">
<Grid Margin="32" RowDefinitions="Auto,*,Auto">
<!-- Header -->
<Grid Grid.Row="0" Margin="0,0,0,24" ColumnDefinitions="*,Auto">
<StackPanel>
<TextBlock Text="{loc:Localize Key=Update_NewVersionAvailable}" Classes="PageHeader" FontSize="28"/>
<StackPanel Orientation="Horizontal" Spacing="16" Margin="0,8,0,0">
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="{loc:Localize Key=Update_CurrentVersion}" FontSize="13" Foreground="{DynamicResource SecondaryText}"/>
<TextBlock x:Name="CurrentVersionText" Text="1.0.0" FontSize="13" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
</StackPanel>
<i:Icon Value="fa-solid fa-arrow-right" FontSize="12" Foreground="{DynamicResource SecondaryText}" VerticalAlignment="Center"/>
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="{loc:Localize Key=Update_LatestVersion}" FontSize="13" Foreground="{DynamicResource SecondaryText}"/>
<TextBlock x:Name="LatestVersionText" Text="1.1.0" FontSize="13" FontWeight="Bold" Foreground="{DynamicResource SuccessBrush}"/>
</StackPanel>
</StackPanel>
</StackPanel>
<Button x:Name="CloseButton" Grid.Column="1" Classes="Secondary" Padding="8" VerticalAlignment="Top" CornerRadius="20">
<i:Icon Value="fa-solid fa-times"/>
</Button>
</Grid>
<!-- Changelog Content -->
<Border Grid.Row="1" Background="{DynamicResource WindowBackground}"
CornerRadius="16" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
Padding="0">
<Grid RowDefinitions="Auto,*">
<Border Grid.Row="0" Background="{DynamicResource ContentBackground}"
Padding="20,16" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1">
<StackPanel Orientation="Horizontal" Spacing="10">
<i:Icon Value="fa-solid fa-star" FontSize="18" Foreground="{DynamicResource AccentBrush}" VerticalAlignment="Center"/>
<TextBlock Text="{loc:Localize Key=Update_Changelog}" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<ScrollViewer Grid.Row="1" Padding="24">
<TextBlock x:Name="ChangelogText"
Text="Loading changelog..."
TextWrapping="Wrap"
FontSize="14"
Foreground="{DynamicResource PrimaryText}"
LineHeight="24"/>
</ScrollViewer>
</Grid>
</Border>
<!-- Footer Actions -->
<Grid Grid.Row="2" ColumnDefinitions="Auto,*,Auto,Auto" Margin="0,24,0,0">
<Button x:Name="SkipVersionButton" Content="{loc:Localize Key=Update_SkipVersion}"
Classes="Secondary" MinWidth="140" Padding="16,10"/>
<StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="12">
<Button x:Name="RemindLaterButton" Content="{loc:Localize Key=Update_RemindLater}"
Classes="Secondary" MinWidth="140" Padding="16,10"/>
<Button x:Name="DownloadButton" Content="{loc:Localize Key=Update_Download}"
Classes="Primary" MinWidth="160" Padding="16,10">
<Button.Styles>
<Style Selector="Button.Primary">
<Setter Property="Background" Value="{DynamicResource SuccessBrush}"/>
</Style>
<Style Selector="Button.Primary:pointerover">
<Setter Property="Background" Value="#2c974b"/>
</Style>
</Button.Styles>
</Button>
</StackPanel>
</Grid>
</Grid>
</Border>
</Window>