@@ -213,7 +213,7 @@ if (settingsSaveBtn) {
213213 } ) ;
214214}
215215
216- // Enhanced theme switching for three themes
216+
217217function initTheme ( ) {
218218 const savedTheme = localStorage . getItem ( 'viewPartyTheme' ) || 'light' ;
219219 document . documentElement . setAttribute ( 'data-theme' , savedTheme ) ;
@@ -228,7 +228,7 @@ function initTheme() {
228228function updateThemeToggle ( currentTheme ) {
229229 if ( ! themeToggle ) return ;
230230
231- // Update the toggle visual based on current theme
231+
232232 switch ( currentTheme ) {
233233 case 'light' :
234234 themeToggle . checked = false ;
@@ -239,7 +239,7 @@ function updateThemeToggle(currentTheme) {
239239 themeToggle . style . setProperty ( '--toggle-color' , '#333333' ) ;
240240 break ;
241241 case 'frutiger' :
242- themeToggle . checked = false ; // We'll make it look different
242+ themeToggle . checked = false ;
243243 themeToggle . style . setProperty ( '--toggle-color' , '#00D4FF' ) ;
244244 break ;
245245 }
@@ -273,7 +273,6 @@ function cycleTheme() {
273273 shareModule . redrawWhiteboardFromHistoryIfVisible ( ) ;
274274 }
275275
276- // Log theme change for user feedback
277276 logStatus ( `Theme changed to: ${ nextTheme . charAt ( 0 ) . toUpperCase ( ) + nextTheme . slice ( 1 ) } ` ) ;
278277}
279278
@@ -291,15 +290,15 @@ function updateThemeLabel() {
291290 themeSwitch . setAttribute ( 'data-theme-name' , 'Dark' ) ;
292291 break ;
293292 case 'frutiger' :
294- themeSwitch . setAttribute ( 'data-theme-name' , 'Liquid Glass ' ) ;
293+ themeSwitch . setAttribute ( 'data-theme-name' , 'Aero ' ) ;
295294 break ;
296295 }
297296}
298297
299- // Initialize theme toggle event listener
298+
300299if ( themeToggle ) {
301300 themeToggle . addEventListener ( 'click' , ( e ) => {
302- e . preventDefault ( ) ; // Prevent default checkbox behavior
301+ e . preventDefault ( ) ;
303302 cycleTheme ( ) ;
304303 } ) ;
305304}
@@ -963,4 +962,4 @@ if (setupSection && !setupSection.classList.contains('hidden')) {
963962 if ( ! document . querySelector ( '#setupSection > p' ) ) { // Add only if not already there (e.g. from previous error)
964963 setupSection . appendChild ( initialSetupMessage ) ;
965964 }
966- }
965+ }
0 commit comments