0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-02-07 09:59:46 +00:00
nextcloud_server/apps/theming/lib/Themes/LightTheme.php
Andy Scherzinger cc1686dba9
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-31 10:38:47 +02:00

41 lines
897 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Theming\Themes;
use OCA\Theming\ITheme;
class LightTheme extends DefaultTheme implements ITheme {
public function getId(): string {
return 'light';
}
public function getTitle(): string {
return $this->l->t('Light theme');
}
public function getEnableLabel(): string {
return $this->l->t('Enable the default light theme');
}
public function getDescription(): string {
return $this->l->t('The default light appearance.');
}
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',
]];
}
}