From 9faddea873c0cccde4d1eece46ef87f9584ab7dc Mon Sep 17 00:00:00 2001 From: montanon Date: Sun, 15 Mar 2026 12:52:08 -0300 Subject: [PATCH] Fix font sizes, stat row heights, and settings crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change font sizes from 12px to 11px across PKMEditor and SAVEditor to match WinForms default (8.25pt ≈ 11px) - Increase stat row heights from 22px to 24px - Wrap settings UI builder in try-catch to prevent crash - Fix DecimalObjectConverter.ConvertBack for uint/byte/float types --- PKHeX.Avalonia/Views/PKMEditorView.axaml | 86 +++++++++---------- PKHeX.Avalonia/Views/SAVEditorView.axaml | 6 +- .../Subforms/SettingsEditorView.axaml.cs | 35 +++++++- 3 files changed, 78 insertions(+), 49 deletions(-) diff --git a/PKHeX.Avalonia/Views/PKMEditorView.axaml b/PKHeX.Avalonia/Views/PKMEditorView.axaml index 6d907cf60..72cc9e87f 100644 --- a/PKHeX.Avalonia/Views/PKMEditorView.axaml +++ b/PKHeX.Avalonia/Views/PKMEditorView.axaml @@ -35,71 +35,71 @@ - - + + - + + HorizontalAlignment="Stretch" Height="24" FontSize="11" /> - - + + - + - + - + + HorizontalAlignment="Stretch" Height="24" FontSize="11" /> - - + + - + + HorizontalAlignment="Stretch" Height="24" FontSize="11" /> - + + HorizontalAlignment="Stretch" Height="24" FontSize="11" /> - - + + - + + HorizontalAlignment="Stretch" Height="24" FontSize="11" /> - + @@ -119,7 +119,7 @@ - + @@ -144,7 +144,7 @@ - + @@ -152,7 +152,7 @@ - + @@ -160,7 +160,7 @@ - + @@ -168,7 +168,7 @@ - + @@ -176,7 +176,7 @@ - + @@ -184,7 +184,7 @@ - + @@ -206,33 +206,33 @@ - + + HorizontalAlignment="Stretch" Height="24" FontSize="11" /> - + + HorizontalAlignment="Stretch" Height="24" FontSize="11" /> - + + HorizontalAlignment="Stretch" Height="24" FontSize="11" /> - + + HorizontalAlignment="Stretch" Height="24" FontSize="11" /> @@ -248,7 +248,7 @@ - + @@ -265,14 +265,14 @@ - - + + - - + + - - + + diff --git a/PKHeX.Avalonia/Views/SAVEditorView.axaml b/PKHeX.Avalonia/Views/SAVEditorView.axaml index 8e60c1427..058674db8 100644 --- a/PKHeX.Avalonia/Views/SAVEditorView.axaml +++ b/PKHeX.Avalonia/Views/SAVEditorView.axaml @@ -18,7 +18,7 @@ ItemsSource="{Binding BoxNames}" SelectedIndex="{Binding CurrentBox}" HorizontalAlignment="Stretch" - Height="24" FontSize="12" Padding="4,2" + Height="24" FontSize="11" Padding="4,2" Margin="2,0" />