From 352555eb8f60a43755bb90540564eb517611f4f2 Mon Sep 17 00:00:00 2001
From: SkyratBot <59378654+SkyratBot@users.noreply.github.com>
Date: Fri, 10 Feb 2023 16:32:30 +0100
Subject: [PATCH] [MIRROR] Watchlist notification text color [MDB IGNORE]
(#19257)
* 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:
* Watchlist notification text color
---------
Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com>
---
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 78e6e78d5cb..ebe83fc8db9 100644
--- a/code/__DEFINES/colors.dm
+++ b/code/__DEFINES/colors.dm
@@ -83,6 +83,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 9bb4ac74bc3..28de1f0aa02 100644
--- a/code/modules/admin/sql_message_system.dm
+++ b/code/modules/admin/sql_message_system.dm
@@ -671,13 +671,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]"