From c771360e00158668b9cfbad11fce6eec43c9a1d1 Mon Sep 17 00:00:00 2001
From: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
Date: Tue, 9 Dec 2025 12:54:13 -0800
Subject: [PATCH] Removes tgui fancy mode as a preference, we're only fancy now
(#94389)
## About The Pull Request
This defaults every tgui to fancy mode and removes the preference
entirely.
## Why It's Good For The Game
If you look through the code you'll find comments like these
> //some browsers (IE8) have trouble with unsupported css3 elements that
break the panel's functionality, so we won't load those if a user is in
no frills tgui mode since that's for similar compatability support
We're far and away from IE8, therefore our need for compatibility
support, so I think it's valid to remove this so called 'no frills tgui
mode'. It's tied into the event message system with every backend
update, so there's a tad less overhead.
## Changelog
:cl:
del: TGUI now defaults to fancy mode, there is only fancy mode. Welcome
to the future.
/:cl:
---
code/modules/admin/poll_management.dm | 6 ++--
code/modules/admin/sql_ban_system.dm | 15 +++++-----
code/modules/client/preferences/tgui.dm | 10 -------
code/modules/tgui/tgui.dm | 6 ++--
code/modules/tgui/tgui_window.dm | 12 +-------
code/modules/tgui_input/say_modal/modal.dm | 1 -
code/modules/tgui_panel/tgui_panel.dm | 1 -
tgui/docs/tgui-for-custom-html-popups.md | 16 +---------
tgui/packages/tgui/backend.ts | 24 ++-------------
tgui/packages/tgui/drag.ts | 3 +-
.../features/game_preferences/tgui.tsx | 7 -----
tgui/packages/tgui/layouts/TitleBar.tsx | 17 +++--------
tgui/packages/tgui/layouts/Window.tsx | 30 ++++++++-----------
13 files changed, 32 insertions(+), 116 deletions(-)
diff --git a/code/modules/admin/poll_management.dm b/code/modules/admin/poll_management.dm
index 88a38c90166..80ba5ec56a0 100644
--- a/code/modules/admin/poll_management.dm
+++ b/code/modules/admin/poll_management.dm
@@ -229,8 +229,7 @@
output += "
"
var/datum/browser/panel = new(usr, "pmpanel", "Poll Management Panel", 780, 640)
panel.add_stylesheet("admin_panelscss", 'html/admin/admin_panels.css')
- if(usr.client.prefs.read_preference(/datum/preference/toggle/tgui_fancy)) //some browsers (IE8) have trouble with unsupported css3 elements that break the panel's functionality, so we won't load those if a user is in no frills tgui mode since that's for similar compatability support
- panel.add_stylesheet("admin_panelscss3", 'html/admin/admin_panels_css3.css')
+ panel.add_stylesheet("admin_panelscss3", 'html/admin/admin_panels_css3.css')
panel.set_content(jointext(output, ""))
panel.open()
@@ -527,8 +526,7 @@
panel_height = 320
var/datum/browser/panel = new(usr, "popanel", "Poll Option Panel", 370, panel_height)
panel.add_stylesheet("admin_panelscss", 'html/admin/admin_panels.css')
- if(usr.client.prefs.read_preference(/datum/preference/toggle/tgui_fancy)) //some browsers (IE8) have trouble with unsupported css3 elements that break the panel's functionality, so we won't load those if a user is in no frills tgui mode since that's for similar compatability support
- panel.add_stylesheet("admin_panelscss3", 'html/admin/admin_panels_css3.css')
+ panel.add_stylesheet("admin_panelscss3", 'html/admin/admin_panels_css3.css')
panel.set_content(jointext(output, ""))
panel.open()
diff --git a/code/modules/admin/sql_ban_system.dm b/code/modules/admin/sql_ban_system.dm
index 71b2c866f0d..ec8d931c0b2 100644
--- a/code/modules/admin/sql_ban_system.dm
+++ b/code/modules/admin/sql_ban_system.dm
@@ -194,10 +194,8 @@
var/datum/browser/panel = new(usr, "banpanel", "Banning Panel", 910, panel_height)
panel.add_stylesheet("admin_panelscss", 'html/admin/admin_panels.css')
panel.add_stylesheet("banpanelcss", 'html/admin/banpanel.css')
- var/tgui_fancy = usr.client.prefs.read_preference(/datum/preference/toggle/tgui_fancy)
- if(tgui_fancy) //some browsers (IE8) have trouble with unsupported css3 elements and DOM methods that break the panel's functionality, so we won't load those if a user is in no frills tgui mode since that's for similar compatability support
- panel.add_stylesheet("admin_panelscss3", 'html/admin/admin_panels_css3.css')
- panel.add_script("banpaneljs", 'html/admin/banpanel.js')
+ panel.add_stylesheet("admin_panelscss3", 'html/admin/admin_panels_css3.css')
+ panel.add_script("banpaneljs", 'html/admin/banpanel.js')
var/list/output = list("