Skip to content

Commit 42bcbe2

Browse files
authored
Merge pull request #33246 from nextcloud/bugfix/noid/dark-primary-light
2 parents d07b786 + 3f63724 commit 42bcbe2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/theming/lib/Themes/DarkTheme.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ public function getCSSVariables(): array {
5656
$colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground));
5757
$colorBoxShadow = $this->util->darken($colorMainBackground, 70);
5858
$colorBoxShadowRGB = join(',', $this->util->hexToRGB($colorBoxShadow));
59+
$colorPrimaryLight = $this->util->mix($this->primaryColor, $colorMainBackground, -80);
5960

60-
return array_merge($defaultVariables, [
61+
return array_merge($defaultVariables, [
6162
'--color-main-text' => $colorMainText,
6263
'--color-main-background' => $colorMainBackground,
6364
'--color-main-background-rgb' => $colorMainBackgroundRGB,
@@ -70,7 +71,8 @@ public function getCSSVariables(): array {
7071
'--color-placeholder-dark' => $this->util->lighten($colorMainBackground, 20),
7172

7273
'--color-primary-hover' => $this->util->mix($this->primaryColor, $colorMainBackground, 60),
73-
'--color-primary-light' => $this->util->mix($this->primaryColor, $colorMainBackground, -80),
74+
'--color-primary-light' => $colorPrimaryLight,
75+
'--color-primary-light-hover' => $this->util->mix($colorPrimaryLight, $colorMainText, 90),
7476
'--color-primary-element' => $this->util->elementColor($this->primaryColor, false),
7577
'--color-primary-element-hover' => $this->util->mix($this->util->elementColor($this->primaryColor, false), $colorMainBackground, 80),
7678
'--color-primary-element-light' => $this->util->lighten($this->util->elementColor($this->primaryColor, false), 15),

0 commit comments

Comments
 (0)