aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Themes/DarkTheme.php
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-15 13:55:19 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-21 09:31:07 +0200
commit9ea72b10104ceb482be33b4626c3603a788a687f (patch)
treec617c4419d160467b587ca02be81c4b65ebef91b /apps/theming/lib/Themes/DarkTheme.php
parent69d1d1a84e5e8937046d30714f11036b680cc04a (diff)
downloadnextcloud-server-9ea72b10104ceb482be33b4626c3603a788a687f.tar.gz
nextcloud-server-9ea72b10104ceb482be33b4626c3603a788a687f.zip
Migrating themes to Theming app
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/lib/Themes/DarkTheme.php')
-rw-r--r--apps/theming/lib/Themes/DarkTheme.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/theming/lib/Themes/DarkTheme.php b/apps/theming/lib/Themes/DarkTheme.php
index b7ec16aa56b..c00f8a7ea4d 100644
--- a/apps/theming/lib/Themes/DarkTheme.php
+++ b/apps/theming/lib/Themes/DarkTheme.php
@@ -36,6 +36,18 @@ class DarkTheme extends DefaultTheme implements ITheme {
return '(prefers-color-scheme: dark)';
}
+ public function getTitle(): string {
+ return $this->l->t('Dark theme');
+ }
+
+ public function getEnableLabel(): string {
+ return $this->l->t('Enable dark theme');
+ }
+
+ public function getDescription(): string {
+ return $this->l->t('A dark theme to ease your eyes by reducing the overall luminosity and brightness. It is still under development, so please report any issues you may find.');
+ }
+
public function getCSSVariables(): array {
$defaultVariables = parent::getCSSVariables();