From b41341d01e3852b32ef68eb4a2c2cd82bd531a73 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 18 Dec 2022 13:01:19 +0100 Subject: [PATCH] Set cornflower blue as the default link color --- CHANGELOG.md | 1 + Demos/GameImpl.cs | 3 +-- Demos/UiDemo.cs | 3 +-- MLEM.Ui/Style/UiStyle.cs | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5ffb6f..56b8ff6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -65,6 +65,7 @@ Improvements - Multi-target net452, making MLEM compatible with MonoGame for consoles - Added trimming and AOT annotations and made MLEM.Ui trimmable - Ensure paragraphs display up-to-date versions of their text callbacks +- Set cornflower blue as the default link color Fixes - Fixed parents of elements that prevent spill not being notified properly diff --git a/Demos/GameImpl.cs b/Demos/GameImpl.cs index d05a49a..6b43baa 100644 --- a/Demos/GameImpl.cs +++ b/Demos/GameImpl.cs @@ -92,8 +92,7 @@ namespace Demos { PanelTexture = new NinePatch(new TextureRegion(tex, 0, 8, 24, 24), 8), ButtonTexture = new NinePatch(new TextureRegion(tex, 24, 8, 16, 16), 4), ScrollBarBackground = new NinePatch(new TextureRegion(tex, 12, 0, 4, 8), 0.25F, paddingPercent: true), - ScrollBarScrollerTexture = new NinePatch(new TextureRegion(tex, 8, 0, 4, 8), 0.25F, paddingPercent: true), - LinkColor = Color.CornflowerBlue + ScrollBarScrollerTexture = new NinePatch(new TextureRegion(tex, 8, 0, 4, 8), 0.25F, paddingPercent: true) }; } diff --git a/Demos/UiDemo.cs b/Demos/UiDemo.cs index d9de9f2..fef30a1 100644 --- a/Demos/UiDemo.cs +++ b/Demos/UiDemo.cs @@ -51,8 +51,7 @@ namespace Demos { CheckboxCheckmark = new TextureRegion(this.testTexture, 24, 0, 8, 8), RadioTexture = new NinePatch(new TextureRegion(this.testTexture, 16, 0, 8, 8), 3), RadioCheckmark = new TextureRegion(this.testTexture, 32, 0, 8, 8), - AdditionalFonts = {{"Monospaced", new GenericSpriteFont(Demo.LoadContent("Fonts/MonospacedFont"))}}, - LinkColor = Color.CornflowerBlue + AdditionalFonts = {{"Monospaced", new GenericSpriteFont(Demo.LoadContent("Fonts/MonospacedFont"))}} }; var untexturedStyle = new UntexturedStyle(this.SpriteBatch) { TextScale = style.TextScale, diff --git a/MLEM.Ui/Style/UiStyle.cs b/MLEM.Ui/Style/UiStyle.cs index 85bdb73..e5c3092 100644 --- a/MLEM.Ui/Style/UiStyle.cs +++ b/MLEM.Ui/Style/UiStyle.cs @@ -216,7 +216,7 @@ namespace MLEM.Ui.Style { /// The color that a 's codes should have. /// This value is passed to . /// - public Color? LinkColor; + public Color? LinkColor = Color.CornflowerBlue; /// /// A set of additional fonts that can be used for the <f FontName> formatting code ///