-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImportModpackDialog.axaml
More file actions
42 lines (38 loc) · 2.45 KB
/
ImportModpackDialog.axaml
File metadata and controls
42 lines (38 loc) · 2.45 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
<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"
mc:Ignorable="d" d:DesignWidth="450" d:DesignHeight="250"
x:Class="JustLauncher.ImportModpackDialog">
<Border Background="{DynamicResource CardBackground}"
BorderBrush="{DynamicResource BorderBrush}"
BorderThickness="1"
CornerRadius="8"
Width="450" Padding="25">
<Grid RowDefinitions="Auto,*,Auto">
<!-- Header -->
<StackPanel Grid.Row="0" Spacing="5" Margin="0,0,0,20">
<TextBlock Text="Import Modpack" FontSize="20" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="Select a Modrinth or CurseForge modpack file to import." FontSize="13" Foreground="{DynamicResource SecondaryText}"/>
</StackPanel>
<!-- Content -->
<StackPanel Grid.Row="1" Spacing="15" VerticalAlignment="Center">
<Grid ColumnDefinitions="*,Auto" x:Name="SelectionGrid">
<TextBox x:Name="FilePathBox" Watermark="Select modpack file..." IsReadOnly="True" Height="40" VerticalContentAlignment="Center"/>
<Button Grid.Column="1" x:Name="BrowseButton" Content="Browse" Height="40" Padding="15,0"/>
</Grid>
<!-- Progress Area -->
<StackPanel x:Name="ProgressArea" Spacing="10" IsVisible="False">
<TextBlock x:Name="StatusLabel" Text="Importing..." FontSize="13" Foreground="{DynamicResource PrimaryText}"/>
<ProgressBar x:Name="ImportProgressBar" Minimum="0" Maximum="100" Value="0" Height="4" Foreground="{DynamicResource AccentBrush}"/>
</StackPanel>
</StackPanel>
<!-- Actions -->
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="10" Margin="0,20,0,0">
<Button x:Name="CancelButton" Content="Cancel" Classes="Secondary" Padding="20,8"/>
<Button x:Name="ImportButton" Content="Import" Classes="Primary" Padding="20,8" IsEnabled="False"/>
</StackPanel>
</Grid>
</Border>
</UserControl>