diff options
Diffstat (limited to 'apps/theming/lib/Themes/LightTheme.php')
-rw-r--r-- | apps/theming/lib/Themes/LightTheme.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/theming/lib/Themes/LightTheme.php b/apps/theming/lib/Themes/LightTheme.php index 320f8334147..7e6773992a1 100644 --- a/apps/theming/lib/Themes/LightTheme.php +++ b/apps/theming/lib/Themes/LightTheme.php @@ -33,10 +33,6 @@ class LightTheme extends DefaultTheme implements ITheme { return 'light'; } - public function getType(): int { - return ITheme::TYPE_THEME; - } - public function getTitle(): string { return $this->l->t('Light theme'); } @@ -52,4 +48,12 @@ class LightTheme extends DefaultTheme implements ITheme { public function getMediaQuery(): string { return '(prefers-color-scheme: light)'; } + + public function getMeta(): array { + // https://html.spec.whatwg.org/multipage/semantics.html#meta-color-scheme + return [[ + 'name' => 'color-scheme', + 'content' => 'light', + ]]; + } } |