Fix action numbers (/handle UI default theme update) (#15840)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Skye
2023-05-14 20:45:56 -07:00
committed by GitHub
parent d49bb89145
commit fac42ef0c0
9 changed files with 4 additions and 2 deletions

View File

@@ -232,6 +232,7 @@ namespace Content.Client.UserInterface.Controls
protected override void OnThemeUpdated() protected override void OnThemeUpdated()
{ {
base.OnThemeUpdated();
StorageButton.TextureNormal = Theme.ResolveTexture(_storageTexturePath); StorageButton.TextureNormal = Theme.ResolveTexture(_storageTexturePath);
ButtonRect.Texture = Theme.ResolveTexture(_buttonTexturePath); ButtonRect.Texture = Theme.ResolveTexture(_buttonTexturePath);
HighlightRect.Texture = Theme.ResolveTexture(_highlightTexturePath); HighlightRect.Texture = Theme.ResolveTexture(_highlightTexturePath);

View File

@@ -158,6 +158,7 @@ public sealed class ActionButton : Control
protected override void OnThemeUpdated() protected override void OnThemeUpdated()
{ {
base.OnThemeUpdated();
Button.Texture = Theme.ResolveTexture("SlotBackground"); Button.Texture = Theme.ResolveTexture("SlotBackground");
Label.FontColorOverride = Theme.ResolveColorOrSpecified("whiteText"); Label.FontColorOverride = Theme.ResolveColorOrSpecified("whiteText");
} }

View File

@@ -3,7 +3,7 @@
xmlns:controls="clr-namespace:Content.Client.UserInterface.Systems.Actions.Controls"> xmlns:controls="clr-namespace:Content.Client.UserInterface.Systems.Actions.Controls">
<BoxContainer Orientation="Horizontal"> <BoxContainer Orientation="Horizontal">
<Control HorizontalExpand="True" SizeFlagsStretchRatio="1"/> <Control HorizontalExpand="True" SizeFlagsStretchRatio="1"/>
<TextureButton TexturePath="/Textures/Interface/Nano/left_arrow.svg.192dpi.png" <TextureButton TexturePath="left_arrow.svg.192dpi"
SizeFlagsStretchRatio="1" SizeFlagsStretchRatio="1"
Scale="0.5 0.5" Scale="0.5 0.5"
HorizontalAlignment="Center" HorizontalAlignment="Center"
@@ -13,7 +13,7 @@
<Control HorizontalExpand="True" SizeFlagsStretchRatio="2"/> <Control HorizontalExpand="True" SizeFlagsStretchRatio="2"/>
<Label Text="1" SizeFlagsStretchRatio="1" Name="Label" Access="Public" /> <Label Text="1" SizeFlagsStretchRatio="1" Name="Label" Access="Public" />
<Control HorizontalExpand="True" SizeFlagsStretchRatio="2"/> <Control HorizontalExpand="True" SizeFlagsStretchRatio="2"/>
<TextureButton TexturePath="/Textures/Interface/Nano/right_arrow.svg.192dpi.png" <TextureButton TexturePath="right_arrow.svg.192dpi"
SizeFlagsStretchRatio="1" SizeFlagsStretchRatio="1"
Scale="0.5 0.5" Scale="0.5 0.5"
HorizontalAlignment="Center" HorizontalAlignment="Center"

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 736 B

After

Width:  |  Height:  |  Size: 736 B

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 850 B

After

Width:  |  Height:  |  Size: 850 B