-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfileDialog.axaml
More file actions
65 lines (60 loc) · 3.38 KB
/
Copy pathProfileDialog.axaml
File metadata and controls
65 lines (60 loc) · 3.38 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
<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:loc="clr-namespace:JustLauncher.Resources"
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="400"
x:Class="JustLauncher.ProfileDialog"
Title="Profile Settings" Height="400" Width="500"
WindowStartupLocation="CenterOwner"
SystemDecorations="None"
ExtendClientAreaToDecorationsHint="True"
ExtendClientAreaTitleBarHeightHint="-1"
Background="{DynamicResource WindowBackground}">
<Grid RowDefinitions="50,*,60">
<!-- Title Bar -->
<Border Grid.Row="0" x:Name="DialogHeader" Background="{DynamicResource TitleBarBackground}">
<Grid ColumnDefinitions="*,Auto">
<TextBlock Text="{loc:Localize Key=Profile_Settings}" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}" VerticalAlignment="Center" Margin="20,0"/>
<Button x:Name="CloseButton" Grid.Column="1" Content="✕" Width="30" Height="30"
Background="Transparent" Foreground="{DynamicResource PrimaryText}" Margin="0,0,10,0"/>
</Grid>
</Border>
<!-- Content -->
<StackPanel Grid.Row="1" Margin="30,20" Spacing="15">
<StackPanel Spacing="5">
<TextBlock Text="{loc:Localize Key=Profile_ProfileName}" Foreground="{DynamicResource SecondaryText}" FontSize="12"/>
<TextBox x:Name="ProfileNameTextBox"/>
</StackPanel>
<StackPanel Spacing="5">
<TextBlock Text="{loc:Localize Key=Profile_GameDirectory}" Foreground="{DynamicResource SecondaryText}" FontSize="12"/>
<Grid ColumnDefinitions="*,Auto">
<TextBox x:Name="GameDirectoryTextBox" IsReadOnly="True"/>
<Button x:Name="BrowseDirectoryButton" Content="📁" Margin="5,0,0,0"/>
</Grid>
</StackPanel>
<StackPanel Spacing="5">
<TextBlock Text="{loc:Localize Key=Profile_MemoryAllocationGB}" Foreground="{DynamicResource SecondaryText}" FontSize="12"/>
<Slider x:Name="MemorySlider"
Minimum="1"
Maximum="32"
Value="4"
TickFrequency="1"
IsSnapToTickEnabled="True"
PropertyChanged="MemorySlider_PropertyChanged"/>
<TextBlock x:Name="MemoryValueText"
Text="4 GB"
HorizontalAlignment="Right"
Foreground="{DynamicResource AccentBrush}"
FontSize="12"/>
</StackPanel>
</StackPanel>
<!-- Buttons -->
<Border Grid.Row="2" Background="{DynamicResource ContentBackground}">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="20,0" Spacing="10">
<Button x:Name="CancelButton" Content="Cancel" Width="80"/>
<Button x:Name="CreateButton" Content="Create" Classes="Primary" Width="80"/>
</StackPanel>
</Border>
</Grid>
</Window>