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
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-05-31 09:49:03 +0300
committerGitHub <noreply@github.com>2022-05-31 09:49:03 +0300
commiteca5e2dce10738317a0ff46a8d3fa1530b623b95 (patch)
tree0ba3170f44a69232f1018768550260150d6bcd16 /apps
parent016895d539649fb32ec2b1c652303dc8a0a06bbf (diff)
parentd64a63abc68ec50530b7b0cbf21cec9c31e1e178 (diff)
Merge pull request #32509 from nextcloud/fix/theming-colours-primary
Diffstat (limited to 'apps')
-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 f5463d94fc4..1241d1d42c3 100644
--- a/apps/theming/lib/Themes/DarkTheme.php
+++ b/apps/theming/lib/Themes/DarkTheme.php
@@ -71,8 +71,10 @@ class DarkTheme extends DefaultTheme implements ITheme {
'--color-primary-hover' => $this->util->mix($this->primaryColor, $colorMainBackground, 60),
'--color-primary-light' => $this->util->mix($this->primaryColor, $colorMainBackground, -80),
- '--color-primary-element-hover' => $this->util->mix($this->util->elementColor($this->primaryColor), $colorMainBackground, 80),
- '--color-primary-element-lighter' => $this->util->mix($this->util->elementColor($this->primaryColor), $colorMainBackground, -70),
+ '--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),
+ '--color-primary-element-lighter' => $this->util->mix($this->util->elementColor($this->primaryColor, false), $colorMainBackground, -70),
'--color-text-maxcontrast' => $this->util->darken($colorMainText, 30),
'--color-text-light' => $this->util->darken($colorMainText, 10),