From e063d49a493a3d5a2db8ab7d66fe73c28bd3fb34 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Thu, 18 Jun 2020 02:38:40 +0200 Subject: [PATCH] Use new stylesheet syntax in StyleSpace --- .../UserInterface/Stylesheets/StyleSpace.cs | 84 ++++++++----------- 1 file changed, 35 insertions(+), 49 deletions(-) diff --git a/Content.Client/UserInterface/Stylesheets/StyleSpace.cs b/Content.Client/UserInterface/Stylesheets/StyleSpace.cs index 9e4b318c6c..b5ff88f41c 100644 --- a/Content.Client/UserInterface/Stylesheets/StyleSpace.cs +++ b/Content.Client/UserInterface/Stylesheets/StyleSpace.cs @@ -5,6 +5,7 @@ using Robust.Client.Interfaces.ResourceManagement; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; using Robust.Shared.Maths; +using static Robust.Client.UserInterface.StylesheetHelpers; namespace Content.Client.UserInterface.Stylesheets { @@ -48,59 +49,44 @@ namespace Content.Client.UserInterface.Stylesheets Stylesheet = new Stylesheet(BaseRules.Concat(new StyleRule[] { - // Big Label - new StyleRule(new SelectorElement(typeof(Label), new[] {StyleClassLabelHeading}, null, null), new[] - { - new StyleProperty(Label.StylePropertyFont, notoSansBold16), - new StyleProperty(Label.StylePropertyFontColor, SpaceRed), - }), + Element