refactor: delegate theme management completely to client via bootstrap

This commit is contained in:
Elian Doran
2026-04-06 19:43:19 +03:00
parent 21598f6189
commit bdd806efff
11 changed files with 134 additions and 99 deletions

View File

@@ -4,7 +4,7 @@
* There are three themes embedded in the application:
* `light`, located in `src\public\stylesheets\theme-light.css`
* `dark`, located in `src\public\stylesheets\theme-dark.css`
* `next`, located in `src\public\stylesheets\theme-next.css`.
* `next`, composed from `src\public\stylesheets\theme-next-light.css` and `src\public\stylesheets\theme-next-dark.css`.
* The default theme is set only once, when the database is created and is managed by `options_init#initNotSyncedOptions`.
* In the original implementation: On Electron, the choice between `light` and `dark` is done based on the OS preference. Otherwise, the theme is always `dark`.
* Now, we always choose `next` as the default theme.