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
73 lines
3.6 KiB
XML
73 lines
3.6 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.EventFlagsView"
|
|
x:DataType="vm:EventFlagsViewModel"
|
|
Title="{Binding WindowTitle}"
|
|
Width="550" Height="550"
|
|
MinWidth="400" 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="OK" Click="OnOkClick" MinWidth="75" Padding="8,4" />
|
|
<Button Content="Cancel" Click="OnCancelClick" MinWidth="75" Padding="8,4" />
|
|
</StackPanel>
|
|
|
|
<!-- Search box -->
|
|
<TextBox DockPanel.Dock="Top" Watermark="Search flags / works..."
|
|
Text="{Binding SearchText}" Height="25" Margin="0,0,0,8" />
|
|
|
|
<!-- Tabs: Flags and Works -->
|
|
<TabControl SelectedIndex="{Binding SelectedTabIndex}">
|
|
<!-- Flags tab -->
|
|
<TabItem Header="Flags">
|
|
<ScrollViewer>
|
|
<ItemsControl ItemsSource="{Binding FilteredFlags}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate x:DataType="vm:EventFlagModel">
|
|
<CheckBox IsChecked="{Binding Value}" Margin="4,2">
|
|
<TextBlock Text="{Binding Label}" FontSize="11" />
|
|
</CheckBox>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
|
|
<!-- Works tab -->
|
|
<TabItem Header="Works" IsVisible="{Binding HasWorks}">
|
|
<ScrollViewer>
|
|
<ItemsControl ItemsSource="{Binding FilteredWorks}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate x:DataType="vm:EventWorkModel">
|
|
<Grid ColumnDefinitions="Auto,*" Margin="4,2">
|
|
<NumericUpDown Grid.Column="0"
|
|
Value="{Binding Value}"
|
|
Minimum="0"
|
|
Maximum="65535"
|
|
Width="100" Height="25"
|
|
FontSize="11"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock Grid.Column="1"
|
|
Text="{Binding Label}"
|
|
FontSize="11"
|
|
VerticalAlignment="Center"
|
|
Margin="8,0,0,0" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
</TabControl>
|
|
</DockPanel>
|
|
|
|
</views:SubformWindow>
|