From 512be6ed3ddcf57ee39d2728a914a328227d68c7 Mon Sep 17 00:00:00 2001
From: FalloutFalcon <86381784+FalloutFalcon@users.noreply.github.com>
Date: Thu, 9 Jul 2026 09:50:44 -0500
Subject: [PATCH] Job Panels use a consistant color pallet (#96834)
## About The Pull Request
Converts all of these random css files to all pull from our department
datums turning this:
into this:
The only real note here is that that purple that prefs use is prob alot
better for sillicon then what the datum uses right now.
## Why It's Good For The Game
I think its horribly bad behavior to have like 10 loose spots you need
to add to if you are trying to add a new
feature/datum/department/whatever. There is a lot of code (mostly old
but some still linger) that does this and its horrible for
maintainability.
There is prob a few other aspects of departments i would like to rework
to tamper down on this but atomization is good.
This also creates a consistent color scheme for jobs instead of using
just like... The default values for "red" for instance. It should make
it easier to tell departments apart across the different menus.
## Changelog
:cl:
qol: All panels displaying jobs now use a consistent color pallet
/:cl:
---
code/datums/records/manifest.dm | 2 +-
code/modules/admin/sql_ban_system.dm | 4 +--
.../client/preferences/middleware/jobs.dm | 1 +
code/modules/jobs/departments/departments.dm | 15 +++-----
html/admin/banpanel.css | 34 +------------------
.../packages/tgui/interfaces/CrewManifest.jsx | 3 +-
.../CharacterPreferences/JobsPage.tsx | 3 +-
.../tgui/interfaces/PreferencesMenu/types.ts | 1 +
.../tgui/styles/interfaces/CrewManifest.scss | 20 ++---------
.../styles/interfaces/PreferencesMenu.scss | 23 ++-----------
10 files changed, 21 insertions(+), 85 deletions(-)
diff --git a/code/datums/records/manifest.dm b/code/datums/records/manifest.dm
index de4fae2baef..3efdf85d5bb 100644
--- a/code/datums/records/manifest.dm
+++ b/code/datums/records/manifest.dm
@@ -217,7 +217,7 @@ GLOBAL_DATUM_INIT(manifest, /datum/manifest, new)
if(open_slots < 1)
continue
open += open_slots
- positions[department.department_name] = list("exceptions" = exceptions, "open" = open)
+ positions[department.department_name] = list("exceptions" = exceptions, "open" = open, "color" = department.ui_color)
return list(
"manifest" = get_manifest(),
diff --git a/code/modules/admin/sql_ban_system.dm b/code/modules/admin/sql_ban_system.dm
index 81c00fc9367..14572a2e5d4 100644
--- a/code/modules/admin/sql_ban_system.dm
+++ b/code/modules/admin/sql_ban_system.dm
@@ -320,9 +320,9 @@
output += "