mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-19 16:15:37 +00:00
fix(ui): system theming for charts (#5740)
This commit is contained in:
1 parent
f9faf3e40f
commit
6a70ab95e2
1 file changed
+3
@@ -83,6 +83,9 @@
|
|||||||
|
|
||||||
function checkTheme() {
|
function checkTheme() {
|
||||||
theme = localStorage.theme
|
theme = localStorage.theme
|
||||||
|
if (theme == 'system') {
|
||||||
|
theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
|
||||||
|
}
|
||||||
if (theme == 'dark') {
|
if (theme == 'dark') {
|
||||||
baseColor = '#FCD452'
|
baseColor = '#FCD452'
|
||||||
textColor = '#ffffff'
|
textColor = '#ffffff'
|
||||||
|
|||||||
Reference in new issue
Block a user