diff --git a/tgui/packages/tgui-panel/index.js b/tgui/packages/tgui-panel/index.js index f6f381384a8..e34b5d17c47 100644 --- a/tgui/packages/tgui-panel/index.js +++ b/tgui/packages/tgui-panel/index.js @@ -73,12 +73,13 @@ const setupApp = () => { // Dispatch incoming messages as store actions Byond.subscribe((type, payload) => store.dispatch({ type, payload })); + // Unhide the panel Byond.winset('legacy_output_selector', { left: 'output_browser', }); // Resize the panel to match the non-browser output - Byond.winget('output').then((output) => { + Byond.winget('legacy_output_selector').then((output) => { Byond.winset('browseroutput', { 'size': output.size, }); diff --git a/tgui/packages/tgui-panel/themes.js b/tgui/packages/tgui-panel/themes.js index 4fac94e9895..1c144190862 100644 --- a/tgui/packages/tgui-panel/themes.js +++ b/tgui/packages/tgui-panel/themes.js @@ -90,8 +90,8 @@ export const setClientTheme = (name) => { 'rpanewindow.text-color': COLOR_DARK_TEXT, 'rpane.background-color': COLOR_DARK_BG, 'rpane.text-color': COLOR_DARK_TEXT, - 'chat_panel.background-color': COLOR_DARK_BG, - 'chat_panel.text-color': COLOR_DARK_TEXT, + 'browseroutput.background-color': COLOR_DARK_BG, + 'browseroutput.text-color': COLOR_DARK_TEXT, 'outputwindow.background-color': COLOR_DARK_BG, 'outputwindow.text-color': COLOR_DARK_TEXT, 'mainwindow.background-color': COLOR_DARK_BG, diff --git a/tgui/public/tgui-panel.bundle.js b/tgui/public/tgui-panel.bundle.js index 08bad76ffde..850569993b6 100644 --- a/tgui/public/tgui-panel.bundle.js +++ b/tgui/public/tgui-panel.bundle.js @@ -209,7 +209,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=e.THEMES=["light","dark"],n="#202020",r="#171717",o="#a4bad6",a=null,i=e.setClientTheme=function(){function d(s){if(clearInterval(a),Byond.command(".output statbrowser:set_theme "+s),a=setTimeout(function(){Byond.command(".output statbrowser:set_theme "+s)},1500),s==="light")return Byond.winset({"rpanewindow.background-color":"none","rpanewindow.text-color":"#000000","rpane.background-color":"none","rpane.text-color":"#000000","legacy_output_selector.background-color":"none","legacy_output_selector.text-color":"#000000","outputwindow.background-color":"none","outputwindow.text-color":"#000000","mainwindow.background-color":"none","mainvsplit.background-color":"none","rulesb.background-color":"none","rulesb.text-color":"#000000","wikib.background-color":"none","wikib.text-color":"#000000","forumb.background-color":"none","forumb.text-color":"#000000","changelog.background-color":"#79ce19","changelog.text-color":"#ffffff","discord.background-color":"#7186f0","discord.text-color":"#ffffff","report-issue.background-color":"#df3e3e","report-issue.text-color":"#ffffff","textb.background-color":"none","textb.text-color":"#000000","infob.background-color":"none","infob.text-color":"#000000","output.background-color":"none","output.text-color":"#000000","infowindow.background-color":"none","infowindow.text-color":"#000000","info.background-color":"#FFFFFF","info.tab-background-color":"none","info.text-color":"#000000","info.tab-text-color":"#000000","info.prefix-color":"#000000","info.suffix-color":"#000000","saybutton.background-color":"none","saybutton.text-color":"#000000","mebutton.background-color":"none","mebutton.text-color":"#000000","asset_cache_browser.background-color":"none","asset_cache_browser.text-color":"#000000","tooltip.background-color":"none","tooltip.text-color":"#000000"});s==="dark"&&Byond.winset({"rpanewindow.background-color":n,"rpanewindow.text-color":o,"rpane.background-color":n,"rpane.text-color":o,"chat_panel.background-color":n,"chat_panel.text-color":o,"outputwindow.background-color":n,"outputwindow.text-color":o,"mainwindow.background-color":n,"mainvsplit.background-color":n,"rulesb.background-color":"#494949","rulesb.text-color":o,"wikib.background-color":"#494949","wikib.text-color":o,"forumb.background-color":"#494949","forumb.text-color":o,"changelog.background-color":"#2d5004","changelog.text-color":o,"discord.background-color":"#212746","discord.text-color":o,"report-issue.background-color":"#492020","report-issue.text-color":o,"textb.background-color":"#494949","textb.text-color":o,"infob.background-color":"#494949","infob.text-color":o,"output.background-color":r,"output.text-color":o,"infowindow.background-color":r,"infowindow.text-color":o,"info.background-color":r,"info.tab-background-color":n,"info.text-color":o,"info.tab-text-color":o,"info.prefix-color":o,"info.suffix-color":o,"saybutton.background-color":n,"saybutton.text-color":o,"mebutton.background-color":n,"mebutton.text-color":o,"asset_cache_browser.background-color":n,"asset_cache_browser.text-color":o,"tooltip.background-color":n,"tooltip.text-color":o})}return d}()},30283:function(){"use strict";/** + */var t=e.THEMES=["light","dark"],n="#202020",r="#171717",o="#a4bad6",a=null,i=e.setClientTheme=function(){function d(s){if(clearInterval(a),Byond.command(".output statbrowser:set_theme "+s),a=setTimeout(function(){Byond.command(".output statbrowser:set_theme "+s)},1500),s==="light")return Byond.winset({"rpanewindow.background-color":"none","rpanewindow.text-color":"#000000","rpane.background-color":"none","rpane.text-color":"#000000","legacy_output_selector.background-color":"none","legacy_output_selector.text-color":"#000000","outputwindow.background-color":"none","outputwindow.text-color":"#000000","mainwindow.background-color":"none","mainvsplit.background-color":"none","rulesb.background-color":"none","rulesb.text-color":"#000000","wikib.background-color":"none","wikib.text-color":"#000000","forumb.background-color":"none","forumb.text-color":"#000000","changelog.background-color":"#79ce19","changelog.text-color":"#ffffff","discord.background-color":"#7186f0","discord.text-color":"#ffffff","report-issue.background-color":"#df3e3e","report-issue.text-color":"#ffffff","textb.background-color":"none","textb.text-color":"#000000","infob.background-color":"none","infob.text-color":"#000000","output.background-color":"none","output.text-color":"#000000","infowindow.background-color":"none","infowindow.text-color":"#000000","info.background-color":"#FFFFFF","info.tab-background-color":"none","info.text-color":"#000000","info.tab-text-color":"#000000","info.prefix-color":"#000000","info.suffix-color":"#000000","saybutton.background-color":"none","saybutton.text-color":"#000000","mebutton.background-color":"none","mebutton.text-color":"#000000","asset_cache_browser.background-color":"none","asset_cache_browser.text-color":"#000000","tooltip.background-color":"none","tooltip.text-color":"#000000"});s==="dark"&&Byond.winset({"rpanewindow.background-color":n,"rpanewindow.text-color":o,"rpane.background-color":n,"rpane.text-color":o,"browseroutput.background-color":n,"browseroutput.text-color":o,"outputwindow.background-color":n,"outputwindow.text-color":o,"mainwindow.background-color":n,"mainvsplit.background-color":n,"rulesb.background-color":"#494949","rulesb.text-color":o,"wikib.background-color":"#494949","wikib.text-color":o,"forumb.background-color":"#494949","forumb.text-color":o,"changelog.background-color":"#2d5004","changelog.text-color":o,"discord.background-color":"#212746","discord.text-color":o,"report-issue.background-color":"#492020","report-issue.text-color":o,"textb.background-color":"#494949","textb.text-color":o,"infob.background-color":"#494949","infob.text-color":o,"output.background-color":r,"output.text-color":o,"infowindow.background-color":r,"infowindow.text-color":o,"info.background-color":r,"info.tab-background-color":n,"info.text-color":o,"info.tab-text-color":o,"info.prefix-color":o,"info.suffix-color":o,"saybutton.background-color":n,"saybutton.text-color":o,"mebutton.background-color":n,"mebutton.text-color":o,"asset_cache_browser.background-color":n,"asset_cache_browser.text-color":o,"tooltip.background-color":n,"tooltip.text-color":o})}return d}()},30283:function(){"use strict";/** * CSS Object Model patches * * Adapted from: https://github.com/shawnbot/aight @@ -519,4 +519,4 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */e.perf.mark("inception",(m=window.performance)==null||(m=m.timing)==null?void 0:m.navigationStart),e.perf.mark("init");var u=(0,i.configureStore)({reducer:(0,t.combineReducers)({chat:d.chatReducer,game:s.gameReducer,ping:f.pingReducer,settings:l.settingsReducer,emotes:c.emotesReducer}),middleware:{pre:[d.chatMiddleware,f.pingMiddleware,p.telemetryMiddleware,l.settingsMiddleware,s.gameMiddleware]}}),v=(0,a.createRenderer)(function(){var E=X(530),I=E.Panel;return(0,g.createComponentVNode)(2,i.StoreProvider,{store:u,children:(0,g.createComponentVNode)(2,I)})}),y=function(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",y);return}(0,r.setupGlobalEvents)({ignoreWindowFocus:!0}),(0,h.setupPanelFocusHacks)(),(0,o.captureExternalLinks)(),u.subscribe(v),Byond.subscribe(function(I,A){return u.dispatch({type:I,payload:A})}),Byond.winset("legacy_output_selector",{left:"output_browser"}),Byond.winget("output").then(function(I){Byond.winset("browseroutput",{size:I.size})})};y()}()})();})(); + */e.perf.mark("inception",(m=window.performance)==null||(m=m.timing)==null?void 0:m.navigationStart),e.perf.mark("init");var u=(0,i.configureStore)({reducer:(0,t.combineReducers)({chat:d.chatReducer,game:s.gameReducer,ping:f.pingReducer,settings:l.settingsReducer,emotes:c.emotesReducer}),middleware:{pre:[d.chatMiddleware,f.pingMiddleware,p.telemetryMiddleware,l.settingsMiddleware,s.gameMiddleware]}}),v=(0,a.createRenderer)(function(){var E=X(530),I=E.Panel;return(0,g.createComponentVNode)(2,i.StoreProvider,{store:u,children:(0,g.createComponentVNode)(2,I)})}),y=function(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",y);return}(0,r.setupGlobalEvents)({ignoreWindowFocus:!0}),(0,h.setupPanelFocusHacks)(),(0,o.captureExternalLinks)(),u.subscribe(v),Byond.subscribe(function(I,A){return u.dispatch({type:I,payload:A})}),Byond.winset("legacy_output_selector",{left:"output_browser"}),Byond.winget("legacy_output_selector").then(function(I){Byond.winset("browseroutput",{size:I.size})})};y()}()})();})();