mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Semantic correction
This commit is contained in:
parent
f770f0444a
commit
4ecd5ada06
@ -19,11 +19,11 @@ export class AppViewService {
|
|||||||
let darkModeEnabled = JSON.parse(localStorage.getItem(GENERAL_SETTINGS.DARK_MODE_ENABLED)) || GENERAL_SETTINGS.DARK_MODE_ENABLED_DEFAULT
|
let darkModeEnabled = JSON.parse(localStorage.getItem(GENERAL_SETTINGS.DARK_MODE_ENABLED)) || GENERAL_SETTINGS.DARK_MODE_ENABLED_DEFAULT
|
||||||
|
|
||||||
if (darkModeUseSystem) {
|
if (darkModeUseSystem) {
|
||||||
this.renderer.addClass(this.document.body, 'dark-mode-preferred')
|
this.renderer.addClass(this.document.body, 'color-scheme-system')
|
||||||
this.renderer.removeClass(this.document.body, 'dark-mode')
|
this.renderer.removeClass(this.document.body, 'color-scheme-dark')
|
||||||
} else {
|
} else {
|
||||||
this.renderer.removeClass(this.document.body, 'dark-mode-preferred')
|
this.renderer.removeClass(this.document.body, 'color-scheme-system')
|
||||||
darkModeEnabled ? this.renderer.addClass(this.document.body, 'dark-mode') : this.renderer.removeClass(this.document.body, 'dark-mode')
|
darkModeEnabled ? this.renderer.addClass(this.document.body, 'color-scheme-dark') : this.renderer.removeClass(this.document.body, 'dark-mode')
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<meta name="color-scheme" content="dark light">
|
<meta name="color-scheme" content="dark light">
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body class="color-scheme-system">
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -319,11 +319,11 @@ $border-color-dark-mode: #47494f;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark-mode {
|
body.color-scheme-dark {
|
||||||
@include dark-mode;
|
@include dark-mode;
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
body.color-scheme-system {
|
||||||
body.dark-mode-preferred {
|
@media (prefers-color-scheme: dark) {
|
||||||
@include dark-mode;
|
@include dark-mode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user