mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Properly set --color-primary-light-hover on dark themes
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
16b06dd758
commit
3f63724c2d
1 changed files with 4 additions and 2 deletions
|
|
@ -56,8 +56,9 @@ class DarkTheme extends DefaultTheme implements ITheme {
|
|||
$colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground));
|
||||
$colorBoxShadow = $this->util->darken($colorMainBackground, 70);
|
||||
$colorBoxShadowRGB = join(',', $this->util->hexToRGB($colorBoxShadow));
|
||||
$colorPrimaryLight = $this->util->mix($this->primaryColor, $colorMainBackground, -80);
|
||||
|
||||
return array_merge($defaultVariables, [
|
||||
return array_merge($defaultVariables, [
|
||||
'--color-main-text' => $colorMainText,
|
||||
'--color-main-background' => $colorMainBackground,
|
||||
'--color-main-background-rgb' => $colorMainBackgroundRGB,
|
||||
|
|
@ -70,7 +71,8 @@ class DarkTheme extends DefaultTheme implements ITheme {
|
|||
'--color-placeholder-dark' => $this->util->lighten($colorMainBackground, 20),
|
||||
|
||||
'--color-primary-hover' => $this->util->mix($this->primaryColor, $colorMainBackground, 60),
|
||||
'--color-primary-light' => $this->util->mix($this->primaryColor, $colorMainBackground, -80),
|
||||
'--color-primary-light' => $colorPrimaryLight,
|
||||
'--color-primary-light-hover' => $this->util->mix($colorPrimaryLight, $colorMainText, 90),
|
||||
'--color-primary-element' => $this->util->elementColor($this->primaryColor, false),
|
||||
'--color-primary-element-hover' => $this->util->mix($this->util->elementColor($this->primaryColor, false), $colorMainBackground, 80),
|
||||
'--color-primary-element-light' => $this->util->lighten($this->util->elementColor($this->primaryColor, false), 15),
|
||||
|
|
|
|||
Loading…
Reference in a new issue