LightTheme.php 897 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Theming\Themes;
  8. use OCA\Theming\ITheme;
  9. class LightTheme extends DefaultTheme implements ITheme {
  10. public function getId(): string {
  11. return 'light';
  12. }
  13. public function getTitle(): string {
  14. return $this->l->t('Light theme');
  15. }
  16. public function getEnableLabel(): string {
  17. return $this->l->t('Enable the default light theme');
  18. }
  19. public function getDescription(): string {
  20. return $this->l->t('The default light appearance.');
  21. }
  22. public function getMediaQuery(): string {
  23. return '(prefers-color-scheme: light)';
  24. }
  25. public function getMeta(): array {
  26. // https://html.spec.whatwg.org/multipage/semantics.html#meta-color-scheme
  27. return [[
  28. 'name' => 'color-scheme',
  29. 'content' => 'light',
  30. ]];
  31. }
  32. }