Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-07-16 10:47:22 +0300
committerJulius Härtl <jus@bitgrid.net>2022-07-16 10:47:22 +0300
commit3f63724c2d2d019ebdeedc80006615f96cc866d5 (patch)
tree6990aa8861dcd49198132645008f7e869dc18645 /apps/theming
parent16b06dd75889bef318881a4783cff03aaeb971d9 (diff)
Properly set --color-primary-light-hover on dark themesbugfix/noid/dark-primary-light
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/lib/Themes/DarkTheme.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/theming/lib/Themes/DarkTheme.php b/apps/theming/lib/Themes/DarkTheme.php
index 1241d1d42c3..bcf4bf695d4 100644
--- a/apps/theming/lib/Themes/DarkTheme.php
+++ b/apps/theming/lib/Themes/DarkTheme.php
@@ -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),