diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-05-04 09:56:50 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-05-13 16:13:00 +0200 |
commit | 73918b8af9626d445f8b58faed15b32dc195ce7f (patch) | |
tree | 6eefbb1d5cd1b793de6224d635dfbb40b3271fee /apps/theming/lib/Themes/DefaultTheme.php | |
parent | 3e29e0ad13b427b6ba4b62c7a35497e9a75de976 (diff) | |
download | nextcloud-server-73918b8af9626d445f8b58faed15b32dc195ce7f.tar.gz nextcloud-server-73918b8af9626d445f8b58faed15b32dc195ce7f.zip |
Cleanup and compile
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/lib/Themes/DefaultTheme.php')
-rw-r--r-- | apps/theming/lib/Themes/DefaultTheme.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php index a98d9099d95..180b1106595 100644 --- a/apps/theming/lib/Themes/DefaultTheme.php +++ b/apps/theming/lib/Themes/DefaultTheme.php @@ -88,6 +88,7 @@ class 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); $hasCustomLogoHeader = $this->imageManager->hasImage('logo') || $this->imageManager->hasImage('logoheader'); @@ -111,9 +112,9 @@ class DefaultTheme implements ITheme { '--color-primary' => $this->primaryColor, '--color-primary-text' => $this->util->invertTextColor($this->primaryColor) ? '#000000' : '#ffffff', '--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-text' => $this->primaryColor, - '--color-primary-light-hover' => $this->util->mix($this->primaryColor, $colorMainText, -80), + '--color-primary-light-hover' => $this->util->mix($colorPrimaryLight, $colorMainText, 90), '--color-primary-text-dark' => $this->util->darken($this->util->invertTextColor($this->primaryColor) ? '#000000' : '#ffffff', 7), // used for buttons, inputs... '--color-primary-element' => $this->util->elementColor($this->primaryColor), |