mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 01:00:20 -04:00
fix color-main-background-rgb
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
c2510a481e
commit
5e2c5e5fb6
2 changed files with 4 additions and 0 deletions
|
|
@ -56,12 +56,14 @@ class DarkHighContrastTheme extends DarkTheme implements ITheme {
|
|||
|
||||
$colorMainText = '#ffffff';
|
||||
$colorMainBackground = '#000000';
|
||||
$colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground));
|
||||
|
||||
return array_merge(
|
||||
$defaultVariables,
|
||||
$this->generatePrimaryVariables($colorMainBackground, $colorMainText),
|
||||
[
|
||||
'--color-main-background' => $colorMainBackground,
|
||||
'--color-main-background-rgb' => $colorMainBackgroundRGB,
|
||||
'--color-main-background-translucent' => 'rgba(var(--color-main-background-rgb), 1)',
|
||||
'--color-main-text' => $colorMainText,
|
||||
|
||||
|
|
|
|||
|
|
@ -56,12 +56,14 @@ class HighContrastTheme extends DefaultTheme implements ITheme {
|
|||
|
||||
$colorMainText = '#000000';
|
||||
$colorMainBackground = '#ffffff';
|
||||
$colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground));
|
||||
|
||||
return array_merge(
|
||||
$defaultVariables,
|
||||
$this->generatePrimaryVariables($colorMainBackground, $colorMainText),
|
||||
[
|
||||
'--color-main-background' => $colorMainBackground,
|
||||
'--color-main-background-rgb' => $colorMainBackgroundRGB,
|
||||
'--color-main-background-translucent' => 'rgba(var(--color-main-background-rgb), 1)',
|
||||
'--color-main-text' => $colorMainText,
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue