From 315c5340f3dc5f5b24fcc143883c0934654649a8 Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Sat, 3 Oct 2026 07:49:15 -0400 Subject: [PATCH] Changed default theme for new users to 'The Network' --- www/js/channel/channel.js | 2 +- www/js/themeManager.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/www/js/channel/channel.js b/www/js/channel/channel.js index e771ddc..f966c8b 100644 --- a/www/js/channel/channel.js +++ b/www/js/channel/channel.js @@ -357,7 +357,7 @@ class channel{ ["syncTolerance",1], ["liveSyncTolerance", 10], ["syncDelta", 6], - ["theme", "Movie Night"], + ["theme", "The Network"], ["chatWidthMin", 20], ["disablePortrait", false], ["disableSendButton", false], diff --git a/www/js/themeManager.js b/www/js/themeManager.js index ce51298..b7d2570 100644 --- a/www/js/themeManager.js +++ b/www/js/themeManager.js @@ -30,6 +30,12 @@ class themeManager{ ["The Network", "/css/theme/the-network.css"] ]); + + /** + * Sets default theme for new users + */ + this.defaultTheme = "The Network"; + /** * Define property to hold theme link DOM node */ @@ -47,7 +53,7 @@ class themeManager{ //If we didnt get a theme to set if(theme == null){ //Use the first theme in the list - theme = Array.from(this.themes.keys())[0]; + theme = this.defaultTheme; } //If we have a link already setup