From fdaec05ebee87c7a2a847b6f510c08371b3aeaa7 Mon Sep 17 00:00:00 2001
From: lessthanthree <83487515+lessthnthree@users.noreply.github.com>
Date: Thu, 9 Feb 2023 22:18:44 -0800
Subject: [PATCH] Watchlist notification text color (#73304)
## About The Pull Request
Changes the adminnotice text for watchlists to a similar pink used in
the TGUI box for asay.


## Why It's Good For The Game
Color has better contrast for dark mode users (where it's currently a
pain) without much of a contrast hit for light mode users. For
accessibility, WCAG 2.0 level AA requires a contrast ratio of at least
4.5:1. D100D1 scores 4.53:1 on white and 4.63:1 on black, meeting
standards for both.
## Changelog
:cl: LT3
admin: Changed color for watchlist notifications
/:cl:
---
code/__DEFINES/colors.dm | 1 +
code/modules/admin/sql_message_system.dm | 10 +++++-----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/code/__DEFINES/colors.dm b/code/__DEFINES/colors.dm
index d15ea0e7b22..1c1acb4a81d 100644
--- a/code/__DEFINES/colors.dm
+++ b/code/__DEFINES/colors.dm
@@ -82,6 +82,7 @@
#define COLOR_LIGHT_PINK "#FF3CC8"
#define COLOR_SCIENCE_PINK "#C96DBF"
#define COLOR_MOSTLY_PURE_PINK "#E4005B"
+#define COLOR_ADMIN_PINK "#D100D1"
#define COLOR_BLUSH_PINK "#DE5D83"
#define COLOR_FADED_PINK "#ff80d5"
#define COLOR_MAGENTA "#FF00FF"
diff --git a/code/modules/admin/sql_message_system.dm b/code/modules/admin/sql_message_system.dm
index ffdeb05e9f6..944fcb64bc6 100644
--- a/code/modules/admin/sql_message_system.dm
+++ b/code/modules/admin/sql_message_system.dm
@@ -668,13 +668,13 @@
var/editor_key = query_get_message_output.item[5]
switch(type)
if("message")
- output += "Admin message left by [span_prefix("[admin_key]")] on [timestamp]"
- output += "
[text] (Click here to verify you have read this message)
"
+ output += "Admin message left by [span_prefix("[admin_key]")] on [timestamp]"
+ output += "
[text] (Click here to verify you have read this message)
"
if("note")
- output += "Note left by [span_prefix("[admin_key]")] on [timestamp]"
- output += "
[text]
"
+ output += "Note left by [span_prefix("[admin_key]")] on [timestamp]"
+ output += "
[text]
"
if("watchlist entry")
- message_admins("Notice: [key_name_admin(target_ckey)] has been on the watchlist since [timestamp] and has just connected - Reason: [text]")
+ message_admins("Notice: [key_name_admin(target_ckey)] has been on the watchlist since [timestamp] and has just connected - Reason: [text]")
send2tgs_adminless_only("Watchlist", "[key_name(target_ckey)] is on the watchlist and has just connected - Reason: [text]")
if("memo")
output += "[span_memo("Memo by [admin_key]")] on [timestamp]"