forked from nextcloud/server
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IONOS(theming): replace light theme with ionos-theme stub
in order to override default css vars later. regenerate autoload with composer v2.5.8 (in order to minimize changes footprint): cd apps/theming/composer/ wget https://getcomposer.org/download/2.5.8/composer.phar php composer.phar dump-autoload Signed-off-by: Misha M.-Kupriyanov <[email protected]>
- Loading branch information
1 parent
53352c2
commit b1f9a92
Showing
4 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
/** | ||
* SPDX-FileLicenseText: 2024 STRATO AG | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
namespace OCA\Theming\Themes\Ionos; | ||
|
||
use OCA\Theming\ITheme; | ||
use OCA\Theming\Themes\DefaultTheme; | ||
|
||
class LightTheme extends DefaultTheme implements ITheme { | ||
|
||
public function getId(): string { | ||
return 'ionos-light'; | ||
} | ||
|
||
public function getTitle(): string { | ||
return $this->l->t('IONOS light theme'); | ||
} | ||
|
||
public function getEnableLabel(): string { | ||
return $this->l->t('Enable IONOS light theme'); | ||
} | ||
|
||
public function getDescription(): string { | ||
return $this->l->t('The IONOS 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', | ||
]]; | ||
} | ||
|
||
public function getCSSVariables(): array { | ||
$defaultVariables = parent::getCSSVariables(); | ||
|
||
return array_merge( | ||
$defaultVariables, | ||
[ | ||
] | ||
); | ||
} | ||
} |