From 90d7aeb6339dd82e5c267a512d440cda7ab7b27b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 13 Sep 2020 18:00:19 +0200 Subject: [PATCH] added a default text color to UiStyle --- MLEM.Ui/Elements/Paragraph.cs | 1 + MLEM.Ui/Style/UiStyle.cs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/MLEM.Ui/Elements/Paragraph.cs b/MLEM.Ui/Elements/Paragraph.cs index bfe6b68..c4037a9 100644 --- a/MLEM.Ui/Elements/Paragraph.cs +++ b/MLEM.Ui/Elements/Paragraph.cs @@ -118,6 +118,7 @@ namespace MLEM.Ui.Elements { base.InitStyle(style); this.TextScale.SetFromStyle(style.TextScale); this.RegularFont.SetFromStyle(style.Font); + this.TextColor.SetFromStyle(style.TextColor); } /// diff --git a/MLEM.Ui/Style/UiStyle.cs b/MLEM.Ui/Style/UiStyle.cs index 58c1b26..9d0c501 100644 --- a/MLEM.Ui/Style/UiStyle.cs +++ b/MLEM.Ui/Style/UiStyle.cs @@ -133,6 +133,10 @@ namespace MLEM.Ui.Style { /// public float TextScale = 1; /// + /// The color that the text of a should have + /// + public Color TextColor = Color.White; + /// /// The that should be played when an element's and events are called. /// Note that this sound is only played if the callbacks have any subscribers. ///