From fac42ef0c089ee215bb3f5eb952d4b5b9846af4d Mon Sep 17 00:00:00 2001 From: Skye <22365940+Skyedra@users.noreply.github.com> Date: Sun, 14 May 2023 20:45:56 -0700 Subject: [PATCH] Fix action numbers (/handle UI default theme update) (#15840) Co-authored-by: metalgearsloth --- .../UserInterface/Controls/SlotControl.cs | 1 + .../Systems/Actions/Controls/ActionButton.cs | 1 + .../Systems/Actions/Controls/ActionPageButtons.xaml | 4 ++-- .../Interface/{Nano => Default}/left_arrow.svg | 0 .../{Nano => Default}/left_arrow.svg.192dpi.png | Bin .../{Nano => Default}/left_arrow.svg.192dpi.png.yml | 0 .../Interface/{Nano => Default}/right_arrow.svg | 0 .../{Nano => Default}/right_arrow.svg.192dpi.png | Bin .../right_arrow.svg.192dpi.png.yml | 0 9 files changed, 4 insertions(+), 2 deletions(-) rename Resources/Textures/Interface/{Nano => Default}/left_arrow.svg (100%) rename Resources/Textures/Interface/{Nano => Default}/left_arrow.svg.192dpi.png (100%) rename Resources/Textures/Interface/{Nano => Default}/left_arrow.svg.192dpi.png.yml (100%) rename Resources/Textures/Interface/{Nano => Default}/right_arrow.svg (100%) rename Resources/Textures/Interface/{Nano => Default}/right_arrow.svg.192dpi.png (100%) rename Resources/Textures/Interface/{Nano => Default}/right_arrow.svg.192dpi.png.yml (100%) diff --git a/Content.Client/UserInterface/Controls/SlotControl.cs b/Content.Client/UserInterface/Controls/SlotControl.cs index 207e3b4357..36ffacc5c5 100644 --- a/Content.Client/UserInterface/Controls/SlotControl.cs +++ b/Content.Client/UserInterface/Controls/SlotControl.cs @@ -232,6 +232,7 @@ namespace Content.Client.UserInterface.Controls protected override void OnThemeUpdated() { + base.OnThemeUpdated(); StorageButton.TextureNormal = Theme.ResolveTexture(_storageTexturePath); ButtonRect.Texture = Theme.ResolveTexture(_buttonTexturePath); HighlightRect.Texture = Theme.ResolveTexture(_highlightTexturePath); diff --git a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs index e032b19534..d55e495faa 100644 --- a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs +++ b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs @@ -158,6 +158,7 @@ public sealed class ActionButton : Control protected override void OnThemeUpdated() { + base.OnThemeUpdated(); Button.Texture = Theme.ResolveTexture("SlotBackground"); Label.FontColorOverride = Theme.ResolveColorOrSpecified("whiteText"); } diff --git a/Content.Client/UserInterface/Systems/Actions/Controls/ActionPageButtons.xaml b/Content.Client/UserInterface/Systems/Actions/Controls/ActionPageButtons.xaml index de805cc6bc..b07380caae 100644 --- a/Content.Client/UserInterface/Systems/Actions/Controls/ActionPageButtons.xaml +++ b/Content.Client/UserInterface/Systems/Actions/Controls/ActionPageButtons.xaml @@ -3,7 +3,7 @@ xmlns:controls="clr-namespace:Content.Client.UserInterface.Systems.Actions.Controls"> -