From 8f8e4cf1445906240f17eda7d8cd996e42c1ff24 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Thu, 25 Jan 2024 16:10:10 -0500 Subject: [PATCH 1/4] Daltonic palette - a high-contrast colorblind-compatible palette for chat colors --- Content.Server/Chat/Systems/ChatSystem.cs | 2 +- Resources/Prototypes/Palettes/text.yml | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Content.Server/Chat/Systems/ChatSystem.cs b/Content.Server/Chat/Systems/ChatSystem.cs index 1b5c8b83fa46..b3d8479b896f 100644 --- a/Content.Server/Chat/Systems/ChatSystem.cs +++ b/Content.Server/Chat/Systems/ChatSystem.cs @@ -71,7 +71,7 @@ public sealed partial class ChatSystem : SharedChatSystem private readonly bool _adminLoocEnabled = true; [ValidatePrototypeId] - private const string _chatNamePalette = "Material"; + private const string _chatNamePalette = "Daltonic"; private string[] _chatNameColors = default!; public override void Initialize() diff --git a/Resources/Prototypes/Palettes/text.yml b/Resources/Prototypes/Palettes/text.yml index de0a9fb60d9f..9ef282401d6b 100644 --- a/Resources/Prototypes/Palettes/text.yml +++ b/Resources/Prototypes/Palettes/text.yml @@ -32,4 +32,14 @@ amber-lighten-2: "#755900" amber-darken-2: "#cc8000" amber-accent-2: "#7c6200" - amber-accent-4: "#996700" \ No newline at end of file + amber-accent-4: "#996700" + +- type: palette + id: Daltonic + name: Daltonic + colors: + fuchsia: "#fe0095" + violet: "#a800ff" + chatreuse: "#e1ff00" + cyan: "#00c0ff" + orange: "#ff9d51" From 963a45ae4a0ad963a2812fcf36378425f169711f Mon Sep 17 00:00:00 2001 From: deathride58 Date: Thu, 25 Jan 2024 16:26:10 -0500 Subject: [PATCH 2/4] Tones down the saturation a bit --- Resources/Prototypes/Palettes/text.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Resources/Prototypes/Palettes/text.yml b/Resources/Prototypes/Palettes/text.yml index 9ef282401d6b..1da172623771 100644 --- a/Resources/Prototypes/Palettes/text.yml +++ b/Resources/Prototypes/Palettes/text.yml @@ -38,8 +38,8 @@ id: Daltonic name: Daltonic colors: - fuchsia: "#fe0095" - violet: "#a800ff" - chatreuse: "#e1ff00" - cyan: "#00c0ff" - orange: "#ff9d51" + fuchsia: "#f5489c" + violet: "#993fe8" + chatreuse: "#d6eb63" + cyan: "#26a3f0" + orange: "#f5964e" From 9da7a662b12a8d3b67bfb63d776a1794cc29a5a6 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Thu, 25 Jan 2024 16:44:34 -0500 Subject: [PATCH 3/4] Makes the fuchsia a little less problematic --- Resources/Prototypes/Palettes/text.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Prototypes/Palettes/text.yml b/Resources/Prototypes/Palettes/text.yml index 1da172623771..05686b0557af 100644 --- a/Resources/Prototypes/Palettes/text.yml +++ b/Resources/Prototypes/Palettes/text.yml @@ -38,7 +38,7 @@ id: Daltonic name: Daltonic colors: - fuchsia: "#f5489c" + fuchsia: "#f44c77" violet: "#993fe8" chatreuse: "#d6eb63" cyan: "#26a3f0" From 0a419b15eef548ccb0088e520786d258211fc8a6 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Thu, 25 Jan 2024 17:16:27 -0500 Subject: [PATCH 4/4] Converts it to an 8-color non-colorblind-compatible palette --- Content.Server/Chat/Systems/ChatSystem.cs | 2 +- Resources/Prototypes/Palettes/text.yml | 17 ++++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Content.Server/Chat/Systems/ChatSystem.cs b/Content.Server/Chat/Systems/ChatSystem.cs index b3d8479b896f..1ad908b27322 100644 --- a/Content.Server/Chat/Systems/ChatSystem.cs +++ b/Content.Server/Chat/Systems/ChatSystem.cs @@ -71,7 +71,7 @@ public sealed partial class ChatSystem : SharedChatSystem private readonly bool _adminLoocEnabled = true; [ValidatePrototypeId] - private const string _chatNamePalette = "Daltonic"; + private const string _chatNamePalette = "ChatNames"; private string[] _chatNameColors = default!; public override void Initialize() diff --git a/Resources/Prototypes/Palettes/text.yml b/Resources/Prototypes/Palettes/text.yml index 05686b0557af..607751a55a37 100644 --- a/Resources/Prototypes/Palettes/text.yml +++ b/Resources/Prototypes/Palettes/text.yml @@ -35,11 +35,14 @@ amber-accent-4: "#996700" - type: palette - id: Daltonic - name: Daltonic + id: ChatNames + name: ChatNames colors: - fuchsia: "#f44c77" - violet: "#993fe8" - chatreuse: "#d6eb63" - cyan: "#26a3f0" - orange: "#f5964e" + daltonicfuchsia: "#f44c77" + daltonicviolet: "#993fe8" + daltonicchatreuse: "#d6eb63" + daltoniccyan: "#26a3f0" + daltonicorange: "#f5964e" + green: "#5ef05a" + lightblue: "#85e6da" + gold: "#e6b940"