mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-02 03:27:42 -05:00
Applied uniform styling standards to every subform dialog: - Window: FontFamily + FontSize=11 on all 107 views - Buttons: MinWidth=75, Padding=8,4 (replacing inconsistent widths) - Controls: Height=25 on all NumericUpDown/ComboBox/TextBox - Monospace: Consolas,Menlo,Courier New,monospace at FontSize=11 - Labels: FontWeight=SemiBold, FontSize=11 - Content margins: Margin=8 on root panels - Button bars: HorizontalAlignment=Right, Spacing=8 - Section headers: normalized from mixed 14/16px to 11-13px - Fixed code-behind in BoxViewerView and SettingsEditorView
83 lines
4.2 KiB
XML
83 lines
4.2 KiB
XML
<views:SubformWindow xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:views="using:PKHeX.Avalonia.Views"
|
|
xmlns:vm="using:PKHeX.Avalonia.ViewModels.Subforms"
|
|
x:Class="PKHeX.Avalonia.Views.Subforms.PokeBlock3CaseEditorView"
|
|
x:DataType="vm:PokeBlock3CaseEditorViewModel"
|
|
Title="PokeBlock Case (Gen 3)"
|
|
Width="500" Height="500"
|
|
MinWidth="400" MinHeight="400"
|
|
WindowStartupLocation="CenterOwner"
|
|
FontFamily="Microsoft Sans Serif,Geneva,Helvetica,Arial,sans-serif"
|
|
FontSize="11"
|
|
CanResize="True">
|
|
|
|
<DockPanel Margin="8">
|
|
<!-- Bottom buttons -->
|
|
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal"
|
|
HorizontalAlignment="Right" Spacing="8" Margin="0,8,0,0">
|
|
<Button Content="Max All" Command="{Binding MaximizeAllCommand}" MinWidth="75" Padding="8,4" />
|
|
<Button Content="Delete All" Command="{Binding DeleteAllCommand}" MinWidth="75" Padding="8,4" />
|
|
<Button Content="OK" Click="OnOkClick" MinWidth="75" Padding="8,4" />
|
|
<Button Content="Cancel" Click="OnCancelClick" MinWidth="75" Padding="8,4" />
|
|
</StackPanel>
|
|
|
|
<Grid ColumnDefinitions="180,*" Margin="0,0,0,8">
|
|
<!-- Left: Block list -->
|
|
<ListBox Grid.Column="0" ItemsSource="{Binding Blocks}"
|
|
SelectedIndex="{Binding SelectedBlockIndex}"
|
|
Margin="0,0,8,0">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate x:DataType="vm:PokeBlock3Model">
|
|
<TextBlock Text="{Binding DisplayName}" />
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
|
|
<!-- Right: Block details -->
|
|
<ScrollViewer Grid.Column="1">
|
|
<StackPanel Spacing="8"
|
|
DataContext="{Binding SelectedBlock}"
|
|
x:DataType="vm:PokeBlock3Model"
|
|
x:CompileBindings="False">
|
|
<StackPanel Spacing="4">
|
|
<TextBlock Text="Color" FontWeight="SemiBold" FontSize="11" />
|
|
<ComboBox x:Name="CB_Color" SelectedItem="{Binding Color}" Height="25" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Spacing="4">
|
|
<TextBlock Text="Spicy (Cool)" FontWeight="SemiBold" FontSize="11" />
|
|
<NumericUpDown Value="{Binding Spicy}" Minimum="0" Maximum="255" Height="25" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Spacing="4">
|
|
<TextBlock Text="Dry (Beauty)" FontWeight="SemiBold" FontSize="11" />
|
|
<NumericUpDown Value="{Binding Dry}" Minimum="0" Maximum="255" Height="25" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Spacing="4">
|
|
<TextBlock Text="Sweet (Cute)" FontWeight="SemiBold" FontSize="11" />
|
|
<NumericUpDown Value="{Binding Sweet}" Minimum="0" Maximum="255" Height="25" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Spacing="4">
|
|
<TextBlock Text="Bitter (Smart)" FontWeight="SemiBold" FontSize="11" />
|
|
<NumericUpDown Value="{Binding Bitter}" Minimum="0" Maximum="255" Height="25" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Spacing="4">
|
|
<TextBlock Text="Sour (Tough)" FontWeight="SemiBold" FontSize="11" />
|
|
<NumericUpDown Value="{Binding Sour}" Minimum="0" Maximum="255" Height="25" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Spacing="4">
|
|
<TextBlock Text="Feel (Sheen)" FontWeight="SemiBold" FontSize="11" />
|
|
<NumericUpDown Value="{Binding Feel}" Minimum="0" Maximum="255" Height="25" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</DockPanel>
|
|
|
|
</views:SubformWindow>
|