-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow selecting light/dark/follow themes in the webui (#924)
* login page follow browser darkmode settings * theme change based on selection in settings between follw system , light, dark * content page follow settings and fix syntax error * drop down menu color follow current theme * version number follow theme in login page * use footer instead of id for version * replace space with tab * move theme settings to the top of the list and fix typo * remove duplicate code and use a function instead * fix logic of change theme if you select follow system to not need reload anymore * fix code style with make styles * fix bug that eventlistener not remove when activate light or dark theme * less js and add theme with patch by @fmartingr * remove NightMode config and now everythings control with Theme * error instead of log if invalid theme selected Co-authored-by: Felipe Martin <[email protected]> * remove unneeded part and update swagger documents --------- Co-authored-by: Felipe Martin <[email protected]>
- Loading branch information
1 parent
47a0143
commit 2a231ec
Showing
14 changed files
with
116 additions
and
80 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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
:root { | ||
--colorLink: #999; | ||
--colorSidebar: #fff; | ||
--errorColor: #f44336; | ||
--main: #f44336; | ||
--sidebarBg: #292929; | ||
--sidebarHoverBg: #232323; | ||
.light-colors(); | ||
} | ||
|
||
.night-colors { | ||
--bg: #1f1f1f; | ||
--border: #191919; | ||
--color: #fff; | ||
--contentBg: #292929; | ||
--headerBg: #292929; | ||
--selectedBg: #261918; | ||
} | ||
|
||
.light-colors { | ||
--bg: #eee; | ||
--border: #e5e5e5; | ||
--color: #232323; | ||
--contentBg: #fff; | ||
--headerBg: #fff; | ||
--selectedBg: #ffe7e5; | ||
} | ||
|
||
body.dark { | ||
.night-colors(); | ||
} | ||
|
||
body.light { | ||
.light-colors(); | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
:root { | ||
.night-colors(); | ||
} | ||
} | ||
|
||
@media (prefers-color-scheme: light) { | ||
:root { | ||
.light-colors(); | ||
} | ||
} |
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
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