]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix action numbers (/handle UI default theme update) (#15840)
authorSkye <22365940+Skyedra@users.noreply.github.com>
Mon, 15 May 2023 03:45:56 +0000 (20:45 -0700)
committerGitHub <noreply@github.com>
Mon, 15 May 2023 03:45:56 +0000 (13:45 +1000)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Content.Client/UserInterface/Controls/SlotControl.cs
Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs
Content.Client/UserInterface/Systems/Actions/Controls/ActionPageButtons.xaml
Resources/Textures/Interface/Default/left_arrow.svg [moved from Resources/Textures/Interface/Nano/left_arrow.svg with 100% similarity]
Resources/Textures/Interface/Default/left_arrow.svg.192dpi.png [moved from Resources/Textures/Interface/Nano/left_arrow.svg.192dpi.png with 100% similarity]
Resources/Textures/Interface/Default/left_arrow.svg.192dpi.png.yml [moved from Resources/Textures/Interface/Nano/left_arrow.svg.192dpi.png.yml with 100% similarity]
Resources/Textures/Interface/Default/right_arrow.svg [moved from Resources/Textures/Interface/Nano/right_arrow.svg with 100% similarity]
Resources/Textures/Interface/Default/right_arrow.svg.192dpi.png [moved from Resources/Textures/Interface/Nano/right_arrow.svg.192dpi.png with 100% similarity]
Resources/Textures/Interface/Default/right_arrow.svg.192dpi.png.yml [moved from Resources/Textures/Interface/Nano/right_arrow.svg.192dpi.png.yml with 100% similarity]

index 207e3b435700ddba5bcfe69e66a9dd2431227a89..36ffacc5c554dbb8268c86f82d19ad4b73b0e030 100644 (file)
@@ -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);
index e032b19534dcf9552ca529524a031afe7c5682bb..d55e495faa11f5ecc3f63b5f07b0efc229f68911 100644 (file)
@@ -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");
     }
index de805cc6bc96994c35905d3b5c412f86908ac389..b07380caae14c09cf2869415e9bdd45fe133bb56 100644 (file)
@@ -3,7 +3,7 @@
     xmlns:controls="clr-namespace:Content.Client.UserInterface.Systems.Actions.Controls">
     <BoxContainer Orientation="Horizontal">
         <Control HorizontalExpand="True" SizeFlagsStretchRatio="1"/>
-        <TextureButton TexturePath="/Textures/Interface/Nano/left_arrow.svg.192dpi.png"
+        <TextureButton TexturePath="left_arrow.svg.192dpi"
                        SizeFlagsStretchRatio="1"
                        Scale="0.5 0.5"
                        HorizontalAlignment="Center"
@@ -13,7 +13,7 @@
         <Control HorizontalExpand="True" SizeFlagsStretchRatio="2"/>
         <Label Text="1" SizeFlagsStretchRatio="1" Name="Label" Access="Public" />
         <Control HorizontalExpand="True" SizeFlagsStretchRatio="2"/>
-        <TextureButton TexturePath="/Textures/Interface/Nano/right_arrow.svg.192dpi.png"
+        <TextureButton TexturePath="right_arrow.svg.192dpi"
                        SizeFlagsStretchRatio="1"
                        Scale="0.5 0.5"
                        HorizontalAlignment="Center"