mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-05 13:07:11 -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
56 lines
2.7 KiB
XML
56 lines
2.7 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.ShowdownTextEditorView"
|
|
x:DataType="vm:ShowdownTextEditorViewModel"
|
|
Title="Showdown Text Editor"
|
|
Width="600" Height="550"
|
|
MinWidth="450" MinHeight="400"
|
|
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">
|
|
<TextBlock Text="{Binding StatusText}" VerticalAlignment="Center" FontSize="11" />
|
|
<Button Content="Parse" Command="{Binding ParsePreviewCommand}" 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>
|
|
|
|
<!-- Main content: split between editor and preview -->
|
|
<Grid RowDefinitions="*,Auto,*">
|
|
<!-- Showdown text editor -->
|
|
<DockPanel Grid.Row="0">
|
|
<TextBlock DockPanel.Dock="Top" Text="Showdown Text:"
|
|
FontWeight="SemiBold" FontSize="11" Margin="0,0,0,4" />
|
|
<TextBox Text="{Binding ShowdownText}"
|
|
AcceptsReturn="True"
|
|
TextWrapping="Wrap"
|
|
FontFamily="Consolas,Menlo,Courier New,monospace"
|
|
FontSize="11"
|
|
Watermark="Paste Showdown set(s) here..." />
|
|
</DockPanel>
|
|
|
|
<GridSplitter Grid.Row="1" Height="6" HorizontalAlignment="Stretch" />
|
|
|
|
<!-- Parse preview -->
|
|
<DockPanel Grid.Row="2">
|
|
<TextBlock DockPanel.Dock="Top" Text="Parse Preview:"
|
|
FontWeight="SemiBold" FontSize="11" Margin="0,4,0,4" />
|
|
<TextBox Text="{Binding PreviewText, Mode=OneWay}"
|
|
IsReadOnly="True"
|
|
AcceptsReturn="True"
|
|
TextWrapping="Wrap"
|
|
FontFamily="Consolas,Menlo,Courier New,monospace"
|
|
FontSize="11" />
|
|
</DockPanel>
|
|
</Grid>
|
|
</DockPanel>
|
|
|
|
</views:SubformWindow>
|