-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add auto dark/light theme switch based on OS preference
Related to #825 Add automatic theme switching based on OS preference * Add logic in `src/mixins/ThemingMixin.js` to detect OS theme preference using `window.matchMedia`. * Update `initializeTheme` method in `src/mixins/ThemingMixin.js` to set theme based on OS preference. * Modify `applyLocalTheme` method in `src/mixins/ThemingMixin.js` to apply the detected theme dynamically. * Include logic in `src/App.vue` to detect and apply theme based on OS preference during app initialization.
- Loading branch information
1 parent
85f8425
commit c2bad0b
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters