claesbert / PlexampStatusPage

A quick html page to cast to view the status of PlexAmp on your network
Creative Commons Zero v1.0 Universal
6 stars 1 forks source link

Theme change only works until next update #5

Closed claesbert closed 3 weeks ago

claesbert commented 3 weeks ago

If you change the theme using the settings, the next refresh/api call, the theme gets reset to 'glass'

claesbert commented 3 weeks ago

Addendum: when pastel is selected, it changes. probably something to do with this code in ui.js // Apply dynamic themes const theme = getCurrentTheme(); if (theme === 'pastel' || theme === 'glass') { albumArtElement.onload = () => { applyTheme(theme, albumArtElement); }; } else { clearDynamicBackground(); }

claesbert commented 3 weeks ago

If pastel was selected, then changed to a different theme, if goes back to pastel. Something is fishy here :D

claesbert commented 3 weeks ago

this behaviour only happens once glass or pastel has been selected, then that one becomes the go-to.

claesbert commented 3 weeks ago

This isn't fixed completely. It now changes to the previous theme after a minute or two (? should time)

claesbert commented 3 weeks ago

tried to time it. about 1.5 minutes, and then it switches to the previous theme.