Skip to content

Commit

Permalink
Padded ItemStatus Text (#29560)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
Willhelm53 and metalgearsloth committed Sep 19, 2024
1 parent 3fc9f96 commit 3acf6b9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Content.Client/Stylesheets/StyleNano.cs
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,18 @@ public StyleNano(IResourceCache resCache) : base(resCache)
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),
Expand Down

0 comments on commit 3acf6b9

Please sign in to comment.