-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJavaVersionDialog.axaml
More file actions
74 lines (70 loc) · 3.97 KB
/
JavaVersionDialog.axaml
File metadata and controls
74 lines (70 loc) · 3.97 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
<UserControl 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="500" d:DesignHeight="400"
x:Class="JustLauncher.JavaVersionDialog"
Width="500">
<Border Background="{DynamicResource ContentBackground}"
CornerRadius="16"
BorderBrush="{DynamicResource BorderBrush}"
BorderThickness="1"
BoxShadow="0 8 24 0 #40000000"
Margin="20">
<StackPanel Spacing="24" Margin="32">
<!-- Header -->
<StackPanel Orientation="Horizontal" Spacing="16">
<i:Icon Value="fa-solid fa-exclamation-triangle" FontSize="32" Foreground="{DynamicResource WarningBrush}"/>
<TextBlock Text="{loc:Localize Key=Java_VersionWarning}" Classes="PageHeader" FontSize="24" VerticalAlignment="Center"/>
</StackPanel>
<!-- Message -->
<TextBlock x:Name="MessageText"
TextWrapping="Wrap"
Foreground="{DynamicResource SecondaryText}"
FontSize="13"
LineHeight="20"
Opacity="0.8"/>
<!-- Version Info Cards -->
<Grid ColumnDefinitions="*,12,*">
<Border Grid.Column="0" Background="{DynamicResource WindowBackground}" CornerRadius="12" Padding="16" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1">
<StackPanel Spacing="4">
<TextBlock Text="{loc:Localize Key=Java_Required}" FontSize="10" FontWeight="Black" Foreground="{DynamicResource SecondaryText}" LetterSpacing="1"/>
<TextBlock x:Name="RequiredVersionText" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource SuccessBrush}"/>
</StackPanel>
</Border>
<Border Grid.Column="2" Background="{DynamicResource WindowBackground}" CornerRadius="12" Padding="16" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1">
<StackPanel Spacing="4">
<TextBlock Text="{loc:Localize Key=Java_Detected}" FontSize="10" FontWeight="Black" Foreground="{DynamicResource SecondaryText}" LetterSpacing="1"/>
<TextBlock x:Name="DetectedVersionText" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource DangerBrush}"/>
</StackPanel>
</Border>
</Grid>
<!-- Advice -->
<Border Background="{DynamicResource WarningBrush}" Opacity="0.1" CornerRadius="8" Padding="12">
<TextBlock Text="{loc:Localize Key=Java_WarningMessage}"
Foreground="{DynamicResource WarningBrush}"
FontSize="12"
FontWeight="Medium"
TextWrapping="Wrap"
HorizontalAlignment="Center"/>
</Border>
<!-- Buttons -->
<Grid ColumnDefinitions="*,12,*" Margin="0,8,0,0">
<Button x:Name="DownloadButton"
Grid.Column="0"
Content="DOWNLOAD JAVA"
Classes="Secondary"
HorizontalAlignment="Stretch"
Height="48"/>
<Button x:Name="LaunchAnywayButton"
Grid.Column="2"
Content="LAUNCH ANYWAY"
Classes="Primary"
HorizontalAlignment="Stretch"
Height="48"/>
</Grid>
</StackPanel>
</Border>
</UserControl>