mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 04:48:18 +01:00
TGUI fixes pt2 (#16545)
* TGUI fixes pt2 * a thing of beauty * a * stuff 2 --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -14,8 +14,8 @@ Thanks to spacemaniac and mcdonald for help with the JS side of this.
|
||||
|
||||
/client/proc/force_white_theme() //There's no way round it. We're essentially changing the skin by hand. It's painful but it works, and is the way Lummox suggested.
|
||||
//Main windows
|
||||
winset(src, "infowindow", "background-color = [COLOR_DARKMODE_DARKBACKGROUND];background-color = none")
|
||||
winset(src, "infowindow", "text-color = [COLOR_DARKMODE_TEXT];text-color = #000000")
|
||||
winset(src, "mainwindow", "background-color = [COLOR_DARKMODE_DARKBACKGROUND];background-color = none")
|
||||
winset(src, "mainwindow", "text-color = [COLOR_DARKMODE_TEXT];text-color = #000000")
|
||||
winset(src, "rpane", "background-color = [COLOR_DARKMODE_DARKBACKGROUND];background-color = none")
|
||||
winset(src, "rpane", "text-color = [COLOR_DARKMODE_TEXT];text-color = #000000")
|
||||
winset(src, "info", "background-color = [COLOR_DARKMODE_BACKGROUND];background-color = none")
|
||||
@@ -73,8 +73,8 @@ Thanks to spacemaniac and mcdonald for help with the JS side of this.
|
||||
|
||||
/client/proc/force_dark_theme() //Inversely, if theyre using white theme and want to swap to the superior dark theme, let's get WINSET() ing
|
||||
//Main windows
|
||||
winset(src, "infowindow", "background-color = none;background-color = [COLOR_DARKMODE_BACKGROUND]")
|
||||
winset(src, "infowindow", "text-color = #000000;text-color = [COLOR_DARKMODE_TEXT]")
|
||||
winset(src, "mainwindow", "background-color = none;background-color = [COLOR_DARKMODE_BACKGROUND]")
|
||||
winset(src, "mainwindow", "text-color = #000000;text-color = [COLOR_DARKMODE_TEXT]")
|
||||
winset(src, "rpane", "background-color = none;background-color = [COLOR_DARKMODE_BACKGROUND]")
|
||||
winset(src, "rpane", "text-color = #000000;text-color = [COLOR_DARKMODE_TEXT]")
|
||||
winset(src, "info", "background-color = none;background-color = [COLOR_DARKMODE_BACKGROUND]")
|
||||
|
||||
@@ -552,8 +552,8 @@
|
||||
var/datum/asset/changelog = get_asset_datum(/datum/asset/simple/changelog)
|
||||
changelog.send(src)
|
||||
|
||||
var/datum/browser/changelog_win = new(src, "changes", "Changelog", 675, 650)
|
||||
changelog_win.set_content('html/changelog.html')
|
||||
var/datum/browser/changelog_win = new(mob, "changes", "Changelog", 675, 650)
|
||||
changelog_win.set_content(file2text('html/changelog.html'))
|
||||
changelog_win.open()
|
||||
if(prefs.lastchangelog != changelog_hash)
|
||||
prefs.lastchangelog = changelog_hash
|
||||
|
||||
Reference in New Issue
Block a user