From 6d4f622977d9049a545b076d102950d3a61ef823 Mon Sep 17 00:00:00 2001 From: eoineoineoin Date: Thu, 22 Jan 2026 17:56:50 +0000 Subject: [PATCH] Character editor style fixes (#41278) * Restore pre-StyleNano element height * Add style for HelpButton to sheetlet --------- Co-authored-by: Janet Blackquill --- Content.Client/Lobby/UI/CharacterSetupGui.xaml | 3 +-- Content.Client/Stylesheets/Sheetlets/ButtonSheetlet.cs | 6 ++++++ Content.Client/Stylesheets/StyleClass.cs | 1 + Content.Client/Stylesheets/StyleNano.cs | 6 ------ 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Content.Client/Lobby/UI/CharacterSetupGui.xaml b/Content.Client/Lobby/UI/CharacterSetupGui.xaml index 09ed989fc6..ab264deb34 100644 --- a/Content.Client/Lobby/UI/CharacterSetupGui.xaml +++ b/Content.Client/Lobby/UI/CharacterSetupGui.xaml @@ -28,8 +28,7 @@ Text="{Loc 'character-setup-gui-character-setup-close-button'}" StyleClasses="ButtonBig"/> - - + diff --git a/Content.Client/Stylesheets/Sheetlets/ButtonSheetlet.cs b/Content.Client/Stylesheets/Sheetlets/ButtonSheetlet.cs index 51ba206392..8b92e1410a 100644 --- a/Content.Client/Stylesheets/Sheetlets/ButtonSheetlet.cs +++ b/Content.Client/Stylesheets/Sheetlets/ButtonSheetlet.cs @@ -19,6 +19,7 @@ public sealed class ButtonSheetlet : Sheetlet where T : PalettedStylesheet var crossTex = sheet.GetTextureOr(iconCfg.CrossIconPath, NanotrasenStylesheet.TextureRoot); var refreshTex = sheet.GetTextureOr(iconCfg.RefreshIconPath, NanotrasenStylesheet.TextureRoot); + var helpTex = sheet.GetTextureOr(iconCfg.HelpIconPath, NanotrasenStylesheet.TextureRoot); var rules = new List { @@ -56,6 +57,11 @@ public sealed class ButtonSheetlet : Sheetlet where T : PalettedStylesheet .Class(StyleClass.RefreshButton) .Prop(TextureButton.StylePropertyTexture, refreshTex), + // Help button + E() + .Class(StyleClass.HelpButton) + .Prop(TextureButton.StylePropertyTexture, helpTex), + // Ensure labels in buttons are aligned. E