[Bug]: Night mode switch is not obeyed when changing themes
Closed this issue · 0 comments
nsdoukos commented
Code of Conduct
- I agree to follow this project's Code of Conduct.
Issue reporting checklist
- I have read and understand the issue reporting policy.
- I observed this bug on a clean install of a supported OS.
- I have followed the project prerequisites.
- I have searched this repository for existing issues.
- I checked the FAQ and official documentation.
- I have generated a RaspAP debug log and performed a self-diagnosis.
Operating System
Raspberry Pi OS (32-bit) Lite Bookworm
Quick install or Manual setup?
Quick install
Onboard wireless chipset or external adapter?
Onboard wireless chipset
Hardware
Raspberry Pi 3 Model B+
RaspAP version
3.0 (Latest)
Other software or services running with RaspAP?
No other software
Contact details (optional)
Bug description
When the dark mode is selected from the switch and the theme is changed the new theme is the light version
Steps to reproduce
- Enable dark mode from the switch.
- Change the theme (to RaspAp or Material that support dark mode).
Screenshots
Additional context
When the theme is changed and the .change() event handler is triggered the state of the night-mode switch button is not taken into account. I have a fix and i will do a pull request.
Relevant log output
No response