mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-02 11:37:19 -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
53 lines
2.9 KiB
XML
53 lines
2.9 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.MoveShopEditorView"
|
|
x:DataType="vm:MoveShopEditorViewModel"
|
|
Title="Move Shop Editor"
|
|
Width="450" Height="550"
|
|
MinWidth="350" MinHeight="350"
|
|
FontFamily="Microsoft Sans Serif,Geneva,Helvetica,Arial,sans-serif"
|
|
FontSize="11"
|
|
WindowStartupLocation="CenterOwner"
|
|
CanResize="True">
|
|
|
|
<DockPanel Margin="8">
|
|
<!-- Bottom buttons -->
|
|
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal"
|
|
HorizontalAlignment="Right" Spacing="8" Margin="0,8,0,0">
|
|
<Button Content="Set All" Command="{Binding SetAllCommand}" MinWidth="75" Padding="8,4" />
|
|
<Button Content="Clear All" Command="{Binding ClearAllCommand}" 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>
|
|
|
|
<!-- Record list -->
|
|
<ScrollViewer>
|
|
<ItemsControl ItemsSource="{Binding Records}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate x:DataType="vm:MoveShopEntryModel">
|
|
<Grid ColumnDefinitions="Auto,Auto,*,Auto,Auto" Margin="4,2">
|
|
<TextBlock Grid.Column="0" Text="{Binding DisplayIndex}"
|
|
VerticalAlignment="Center" Margin="4,0"
|
|
FontFamily="Consolas,Menlo,Courier New,monospace"
|
|
FontSize="11"
|
|
Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}" />
|
|
<TextBlock Grid.Column="1" Text="{Binding MoveName}"
|
|
VerticalAlignment="Center" Margin="4,0" Width="140"
|
|
FontSize="11" />
|
|
<CheckBox Grid.Column="2" Content="Purchased"
|
|
IsChecked="{Binding IsPurchased}"
|
|
VerticalAlignment="Center" Margin="4,0" />
|
|
<CheckBox Grid.Column="3" Content="Mastered"
|
|
IsChecked="{Binding IsMastered}"
|
|
VerticalAlignment="Center" Margin="4,0" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</ScrollViewer>
|
|
</DockPanel>
|
|
|
|
</views:SubformWindow>
|