]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Padded ItemStatus Text (#29560)
authorWillhelm53 <97707302+Willhelm53@users.noreply.github.com>
Thu, 19 Sep 2024 07:51:33 +0000 (03:51 -0400)
committerGitHub <noreply@github.com>
Thu, 19 Sep 2024 07:51:33 +0000 (17:51 +1000)
* Back in the saddle again! <(8o)

* if you like my STYLE you should see my SHEETS ;-)

* stylesheet change works for ItemStatusNotHeld but broken for ItemStatus. Just using xaml for now.

* teehee

* beeg

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Content.Client/Stylesheets/StyleNano.cs

index 0bd75003a209fef43c2d7b3ccaae4ad43d4012a8..ccd36c35e82be307ddf75fdbece36420cbfc63f5 100644 (file)
@@ -695,6 +695,18 @@ namespace Content.Client.Stylesheets
                         new StyleProperty("font-color", Color.FromHex("#E5E5E581")),
                     }),
 
+                // ItemStatus for hands
+                Element()
+                    .Class(StyleClassItemStatusNotHeld)
+                    .Prop("font", notoSansItalic10)
+                    .Prop("font-color", ItemStatusNotHeldColor)
+                    .Prop(nameof(Control.Margin), new Thickness(4, 0, 0, 2)),
+
+                Element()
+                    .Class(StyleClassItemStatus)
+                    .Prop(nameof(RichTextLabel.LineHeightScale), 0.7f)
+                    .Prop(nameof(Control.Margin), new Thickness(4, 0, 0, 2)),
+
                 // Context Menu window
                 Element<PanelContainer>().Class(ContextMenuPopup.StyleClassContextMenuPopup)
                     .Prop(PanelContainer.StylePropertyPanel, contextMenuBackground),