aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Themes/LightTheme.php
blob: 714156d47213cc41e20ce3c31edf548e450438e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?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',
		]];
	}
}