mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Apply standard styles to all views.
This commit is contained in:
@@ -40,20 +40,20 @@
|
||||
<Design.DataContext>
|
||||
<vm:AboutViewModel />
|
||||
</Design.DataContext>
|
||||
<Border Padding="15">
|
||||
<Grid RowDefinitions="Auto,*,Auto">
|
||||
<Grid RowDefinitions="Auto,*,Auto"
|
||||
Margin="16"
|
||||
RowSpacing="8">
|
||||
<Grid Grid.Row="0"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="Auto,*">
|
||||
<Border Grid.Column="0"
|
||||
BorderThickness="5">
|
||||
<Image Source="/Assets/avalonia-logo.ico"
|
||||
Width="48"
|
||||
Height="48" />
|
||||
</Border>
|
||||
<Grid Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
RowDefinitions="Auto,Auto">
|
||||
RowDefinitions="Auto,Auto"
|
||||
RowSpacing="8">
|
||||
<TextBlock Grid.Row="0"
|
||||
Text="{Binding SoftwareName, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
@@ -73,32 +73,33 @@
|
||||
<TabItem.Header>
|
||||
<TextBlock Text="{x:Static resources:Localization.AboutLabel}" />
|
||||
</TabItem.Header>
|
||||
<Grid RowDefinitions="Auto,12,Auto,12,Auto,Auto,*">
|
||||
<Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,*"
|
||||
RowSpacing="8">
|
||||
<TextBlock Grid.Row="0"
|
||||
Text="{Binding SuiteName, Mode=OneWay}" />
|
||||
<TextBlock Grid.Row="2"
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding Copyright, Mode=OneWay}" />
|
||||
<Button Grid.Row="4"
|
||||
BorderThickness="0"
|
||||
<Button Grid.Row="2"
|
||||
Background="Transparent"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Padding="0"
|
||||
BorderThickness="0"
|
||||
Command="{Binding WebsiteCommand, Mode=OneWay}">
|
||||
<!-- TODO: TextDecorations="Underline" in next Avalonia UI version -->
|
||||
<TextBlock Text="{Binding Website, Mode=OneWay}"
|
||||
Foreground="Blue" />
|
||||
Foreground="Blue"
|
||||
TextDecorations="Underline" />
|
||||
</Button>
|
||||
<Button Grid.Row="5"
|
||||
BorderThickness="0"
|
||||
<Button Grid.Row="3"
|
||||
Background="Transparent"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Padding="0"
|
||||
BorderThickness="0"
|
||||
Command="{Binding LicenseCommand, Mode=OneWay}">
|
||||
<!-- TODO: TextDecorations="Underline" in next Avalonia UI version -->
|
||||
<TextBlock Text="{x:Static resources:Localization.LicenseLabel}"
|
||||
Foreground="Blue" />
|
||||
Foreground="Blue"
|
||||
TextDecorations="Underline" />
|
||||
</Button>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
@@ -141,5 +142,4 @@
|
||||
<TextBlock Text="{x:Static resources:Localization.CloseLabel}" />
|
||||
</Button>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
||||
@@ -41,203 +41,190 @@
|
||||
<Design.DataContext>
|
||||
<vm:EditDatViewModel />
|
||||
</Design.DataContext>
|
||||
<Border Padding="15">
|
||||
<Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto">
|
||||
<Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto"
|
||||
Margin="16"
|
||||
RowSpacing="8">
|
||||
<Grid Grid.Row="0"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.RomSetNameLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding Name, Mode=TwoWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding Name, Mode=TwoWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="1"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.RomSetVersionLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding Version, Mode=TwoWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding Version, Mode=TwoWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="2"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.RomSetAuthorLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding Author, Mode=TwoWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding Author, Mode=TwoWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="3"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.RomSetCategoryLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding Category, Mode=TwoWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding Category, Mode=TwoWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="4"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.RomSetCommentLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding Comment, Mode=TwoWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding Comment, Mode=TwoWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="5"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.RomSetDateLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding Date, Mode=TwoWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding Date, Mode=TwoWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="6"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.RomSetDescriptionLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding Description, Mode=TwoWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding Description, Mode=TwoWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="7"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.HomepageLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding Homepage, Mode=TwoWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding Homepage, Mode=TwoWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="8"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.TotalMachinesLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBlock Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding TotalMachines, Mode=OneWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding TotalMachines, Mode=OneWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="9"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.CompleteMachinesLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBlock Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding CompleteMachines, Mode=OneWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding CompleteMachines, Mode=OneWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="10"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.IncompleteMachinesLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBlock Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding IncompleteMachines, Mode=OneWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding IncompleteMachines, Mode=OneWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="11"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.TotalRomsLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBlock Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding TotalRoms, Mode=OneWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding TotalRoms, Mode=OneWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="12"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.HaveRomsLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBlock Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding HaveRoms, Mode=OneWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding HaveRoms, Mode=OneWay}" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="13"
|
||||
ColumnSpacing="8"
|
||||
ColumnDefinitions="140,*">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.MissRomsLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBlock Grid.Column="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding MissRoms, Mode=OneWay}"
|
||||
Padding="5" />
|
||||
Text="{Binding MissRoms, Mode=OneWay}" />
|
||||
</Grid>
|
||||
<StackPanel Grid.Row="14"
|
||||
Orientation="Horizontal"
|
||||
@@ -262,5 +249,4 @@
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
||||
@@ -41,8 +41,9 @@
|
||||
<Design.DataContext>
|
||||
<vm:ExportDatViewModel />
|
||||
</Design.DataContext>
|
||||
<Border Padding="15">
|
||||
<Grid RowDefinitions="Auto,auto,Auto,Auto">
|
||||
<Grid RowDefinitions="Auto,auto,Auto,Auto"
|
||||
Margin="16"
|
||||
RowSpacing="8">
|
||||
<TextBlock Grid.Row="0"
|
||||
Text="{Binding StatusMessage, Mode=OneWay}"
|
||||
HorizontalAlignment="Center" />
|
||||
@@ -63,5 +64,4 @@
|
||||
<TextBlock Text="{x:Static resources:Localization.CloseLabel}" />
|
||||
</Button>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
||||
@@ -41,9 +41,11 @@
|
||||
<Design.DataContext>
|
||||
<vm:ExportRomsViewModel />
|
||||
</Design.DataContext>
|
||||
<Border Padding="15">
|
||||
<Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,*,Auto">
|
||||
<Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,*,Auto"
|
||||
Margin="16"
|
||||
RowSpacing="8">
|
||||
<StackPanel Grid.Row="0"
|
||||
Spacing="8"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Stretch">
|
||||
<TextBlock Text="{x:Static resources:Localization.PathLabel}"
|
||||
@@ -61,6 +63,7 @@
|
||||
IsIndeterminate="{Binding ProgressIsIndeterminate, Mode=OneWay}"
|
||||
IsVisible="{Binding ProgressVisible, Mode=OneWay}" />
|
||||
<StackPanel Grid.Row="3"
|
||||
Spacing="8"
|
||||
IsVisible="{Binding Progress2Visible, Mode=OneWay}">
|
||||
<TextBlock Text="{Binding Status2Message, Mode=OneWay}" />
|
||||
<ProgressBar Minimum="{Binding Progress2Minimum, Mode=OneWay}"
|
||||
@@ -69,6 +72,7 @@
|
||||
IsIndeterminate="{Binding Progress2IsIndeterminate, Mode=OneWay}" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="4"
|
||||
Spacing="8"
|
||||
IsVisible="{Binding Progress3Visible, Mode=OneWay}">
|
||||
<TextBlock Text="{Binding Status3Message, Mode=OneWay}" />
|
||||
<ProgressBar Minimum="{Binding Progress3Minimum, Mode=OneWay}"
|
||||
@@ -84,5 +88,4 @@
|
||||
<TextBlock Text="{x:Static resources:Localization.CloseLabel}" />
|
||||
</Button>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
||||
@@ -41,8 +41,9 @@
|
||||
<Design.DataContext>
|
||||
<vm:ImportDatViewModel />
|
||||
</Design.DataContext>
|
||||
<Border Padding="15">
|
||||
<Grid RowDefinitions="Auto,auto,Auto,Auto">
|
||||
<Grid RowDefinitions="Auto,auto,Auto,Auto"
|
||||
Margin="16"
|
||||
RowSpacing="8">
|
||||
<TextBlock Grid.Row="0"
|
||||
Text="{Binding StatusMessage, Mode=OneWay}"
|
||||
HorizontalAlignment="Center" />
|
||||
@@ -66,5 +67,4 @@
|
||||
<TextBlock Text="{x:Static resources:Localization.CloseLabel}" />
|
||||
</Button>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
||||
@@ -10,8 +10,7 @@
|
||||
Height="600"
|
||||
x:Class="RomRepoMgr.Views.ImportDatFolder"
|
||||
Title="{x:Static resources:Localization.ImportDatFolderTitle}"
|
||||
Icon="/Assets/avalonia-logo.ico"
|
||||
CanResize="False">
|
||||
Icon="/Assets/avalonia-logo.ico">
|
||||
<Design.DataContext>
|
||||
<vm:ImportDatFolderViewModel />
|
||||
</Design.DataContext>
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
Height="768"
|
||||
x:Class="RomRepoMgr.Views.ImportRomFolder"
|
||||
Icon="/Assets/avalonia-logo.ico"
|
||||
CanResize="False"
|
||||
Title="{x:Static resources:Localization.ImportRomFolderTitle}"
|
||||
WindowStartupLocation="CenterOwner">
|
||||
<Design.DataContext>
|
||||
|
||||
@@ -41,8 +41,9 @@
|
||||
<Design.DataContext>
|
||||
<vm:RemoveDatViewModel />
|
||||
</Design.DataContext>
|
||||
<Border Padding="15">
|
||||
<Grid RowDefinitions="Auto,auto">
|
||||
<Grid RowDefinitions="Auto,auto"
|
||||
Margin="16"
|
||||
RowSpacing="8">
|
||||
<TextBlock Grid.Row="0"
|
||||
Text="{Binding StatusMessage, Mode=OneWay}"
|
||||
HorizontalAlignment="Center" />
|
||||
@@ -50,5 +51,4 @@
|
||||
IsIndeterminate="True"
|
||||
HorizontalAlignment="Stretch" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
||||
@@ -31,7 +31,7 @@
|
||||
xmlns:vm="clr-namespace:RomRepoMgr.ViewModels;assembly=RomRepoMgr"
|
||||
xmlns:resources="clr-namespace:RomRepoMgr.Resources"
|
||||
mc:Ignorable="d"
|
||||
Width="480"
|
||||
Width="540"
|
||||
Height="320"
|
||||
x:Class="RomRepoMgr.Views.SettingsDialog"
|
||||
Icon="/Assets/avalonia-logo.ico"
|
||||
@@ -40,71 +40,66 @@
|
||||
<Design.DataContext>
|
||||
<vm:SettingsViewModel />
|
||||
</Design.DataContext>
|
||||
<Border Padding="15">
|
||||
<Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto">
|
||||
<Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto"
|
||||
Margin="16"
|
||||
RowSpacing="8">
|
||||
<Grid Grid.Row="0"
|
||||
ColumnDefinitions="*,250,Auto">
|
||||
ColumnDefinitions="*,250,Auto"
|
||||
ColumnSpacing="8">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.DatabaseFileLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding DatabasePath, Mode=TwoWay}"
|
||||
IsReadOnly="True"
|
||||
Padding="5" />
|
||||
IsReadOnly="True" />
|
||||
<Button Grid.Column="2"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Command="{Binding DatabaseCommand, Mode=OneWay}"
|
||||
Padding="5">
|
||||
Command="{Binding DatabaseCommand, Mode=OneWay}">
|
||||
<TextBlock Text="{x:Static resources:Localization.ChooseLabel}" />
|
||||
</Button>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1"
|
||||
ColumnDefinitions="*,250,Auto">
|
||||
ColumnDefinitions="*,250,Auto"
|
||||
ColumnSpacing="8">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.RepositoryFolderLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding RepositoryPath, Mode=TwoWay}"
|
||||
IsReadOnly="True"
|
||||
Padding="5" />
|
||||
IsReadOnly="True" />
|
||||
<Button Grid.Column="2"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Command="{Binding RepositoryCommand, Mode=OneWay}"
|
||||
Padding="5">
|
||||
Command="{Binding RepositoryCommand, Mode=OneWay}">
|
||||
<TextBlock Text="{x:Static resources:Localization.ChooseLabel}" />
|
||||
</Button>
|
||||
</Grid>
|
||||
<Grid Grid.Row="2"
|
||||
ColumnDefinitions="*,250,Auto">
|
||||
ColumnDefinitions="*,250,Auto"
|
||||
ColumnSpacing="8">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.TemporaryFolderLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding TemporaryPath, Mode=TwoWay}"
|
||||
IsReadOnly="True"
|
||||
Padding="5" />
|
||||
IsReadOnly="True" />
|
||||
<Button Grid.Column="2"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Command="{Binding TemporaryCommand, Mode=OneWay}"
|
||||
Padding="5">
|
||||
Command="{Binding TemporaryCommand, Mode=OneWay}">
|
||||
<TextBlock Text="{x:Static resources:Localization.ChooseLabel}" />
|
||||
</Button>
|
||||
</Grid>
|
||||
@@ -116,24 +111,22 @@
|
||||
</CheckBox>
|
||||
<Grid Grid.Row="4"
|
||||
ColumnDefinitions="*,250,Auto"
|
||||
ColumnSpacing="8"
|
||||
IsVisible="{Binding !UseInternalDecompressor}">
|
||||
<TextBlock Grid.Column="0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.UnArPathLabel}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<TextBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Text="{Binding UnArPath, Mode=TwoWay}"
|
||||
IsReadOnly="True"
|
||||
Padding="5" />
|
||||
IsReadOnly="True" />
|
||||
<Button Grid.Column="2"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Command="{Binding UnArCommand, Mode=OneWay}"
|
||||
Padding="5">
|
||||
Command="{Binding UnArCommand, Mode=OneWay}">
|
||||
<TextBlock Text="{x:Static resources:Localization.ChooseLabel}" />
|
||||
</Button>
|
||||
</Grid>
|
||||
@@ -144,20 +137,20 @@
|
||||
FontWeight="Bold"
|
||||
IsVisible="{Binding !UseInternalDecompressor}" />
|
||||
<Grid Grid.Row="6"
|
||||
ColumnDefinitions="Auto, *">
|
||||
ColumnDefinitions="Auto, *"
|
||||
ColumnSpacing="8">
|
||||
<TextBlock Grid.Column="0"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Static resources:Localization.CompressionType}"
|
||||
FontWeight="Bold"
|
||||
Padding="5" />
|
||||
FontWeight="Bold" />
|
||||
<ComboBox Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
SelectedItem="{Binding Compression, Mode=TwoWay}"
|
||||
ItemsSource="{Binding CompressionTypes, Mode=OneWay}"
|
||||
Padding="5" />
|
||||
ItemsSource="{Binding CompressionTypes, Mode=OneWay}" />
|
||||
</Grid>
|
||||
<StackPanel Grid.Row="7"
|
||||
Spacing="8"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Right">
|
||||
<Button HorizontalAlignment="Right"
|
||||
@@ -172,5 +165,4 @@
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
||||
@@ -11,8 +11,8 @@
|
||||
Title="ROM Repository Manager"
|
||||
SystemDecorations="BorderOnly"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
Width="250"
|
||||
Height="175">
|
||||
Width="320"
|
||||
Height="240">
|
||||
<Design.DataContext>
|
||||
<vm:SplashWindowViewModel />
|
||||
</Design.DataContext>
|
||||
@@ -20,12 +20,14 @@
|
||||
<StackPanel HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Top"
|
||||
Orientation="Vertical"
|
||||
Margin="5">
|
||||
Margin="16"
|
||||
Spacing="8">
|
||||
<TextBlock Text="{Binding LoadingText, Mode=OneWay}"
|
||||
FontWeight="Bold"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top" />
|
||||
<StackPanel HorizontalAlignment="Left"
|
||||
Spacing="8"
|
||||
Orientation="Horizontal">
|
||||
<Image MaxWidth="24"
|
||||
MaxHeight="24"
|
||||
@@ -52,6 +54,7 @@
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
<StackPanel HorizontalAlignment="Left"
|
||||
Spacing="8"
|
||||
Orientation="Horizontal">
|
||||
<Image MaxWidth="24"
|
||||
MaxHeight="24"
|
||||
@@ -78,6 +81,7 @@
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
<StackPanel HorizontalAlignment="Left"
|
||||
Spacing="8"
|
||||
Orientation="Horizontal">
|
||||
<Image MaxWidth="24"
|
||||
MaxHeight="24"
|
||||
@@ -104,6 +108,7 @@
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
<StackPanel HorizontalAlignment="Left"
|
||||
Spacing="8"
|
||||
Orientation="Horizontal">
|
||||
<Image MaxWidth="24"
|
||||
MaxHeight="24"
|
||||
@@ -130,6 +135,7 @@
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
<StackPanel HorizontalAlignment="Left"
|
||||
Spacing="8"
|
||||
Orientation="Horizontal">
|
||||
<Image MaxWidth="24"
|
||||
MaxHeight="24"
|
||||
|
||||
@@ -33,14 +33,14 @@
|
||||
mc:Ignorable="d"
|
||||
x:Class="RomRepoMgr.Views.UpdateStats"
|
||||
Icon="/Assets/avalonia-logo.ico"
|
||||
CanResize="False"
|
||||
Title="{x:Static resources:Localization.UpdateStatsTitle}"
|
||||
WindowStartupLocation="CenterOwner">
|
||||
<Design.DataContext>
|
||||
<vm:UpdateStatsViewModel />
|
||||
</Design.DataContext>
|
||||
<Border Padding="15">
|
||||
<Grid RowDefinitions="Auto,Auto,*,Auto">
|
||||
<Grid RowDefinitions="Auto,Auto,*,Auto"
|
||||
Margin="16"
|
||||
RowSpacing="8">
|
||||
<TextBlock Grid.Row="0"
|
||||
Text="{Binding StatusMessage, Mode=OneWay}"
|
||||
HorizontalAlignment="Center" />
|
||||
@@ -166,5 +166,4 @@
|
||||
<TextBlock Text="{x:Static resources:Localization.CloseLabel}" />
|
||||
</Button>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user