aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Themes/DefaultTheme.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/lib/Themes/DefaultTheme.php')
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php22
1 files changed, 21 insertions, 1 deletions
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index 990b011bae9..3b194a36546 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -29,6 +29,7 @@ use OCA\Theming\ThemingDefaults;
use OCA\Theming\Util;
use OCA\Theming\ITheme;
use OCP\IConfig;
+use OCP\IL10N;
use OCP\IURLGenerator;
class DefaultTheme implements ITheme {
@@ -37,6 +38,7 @@ class DefaultTheme implements ITheme {
public IURLGenerator $urlGenerator;
public ImageManager $imageManager;
public IConfig $config;
+ public IL10N $l;
public string $primaryColor;
@@ -44,12 +46,14 @@ class DefaultTheme implements ITheme {
ThemingDefaults $themingDefaults,
IURLGenerator $urlGenerator,
ImageManager $imageManager,
- IConfig $config) {
+ IConfig $config,
+ IL10N $l) {
$this->util = $util;
$this->themingDefaults = $themingDefaults;
$this->urlGenerator = $urlGenerator;
$this->imageManager = $imageManager;
$this->config = $config;
+ $this->l = $l;
$this->primaryColor = $this->themingDefaults->getColorPrimary();
}
@@ -58,6 +62,22 @@ class DefaultTheme implements ITheme {
return 'default';
}
+ public function getType(): int {
+ return ITheme::TYPE_THEME;
+ }
+
+ 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 '';
}