diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-05-20 09:42:32 +0300 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-05-20 09:42:32 +0300 |
commit | d64a63abc68ec50530b7b0cbf21cec9c31e1e178 (patch) | |
tree | 42c10b8ab455917fcf29f1f40f68f1f57f0083b3 /apps/theming | |
parent | ebd9efd5843303fe6150db924560c5125ebd439e (diff) |
Properly calculate primary element based on background luminancefix/theming-colours-primary
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming')
-rw-r--r-- | apps/theming/lib/Themes/DarkTheme.php | 6 |
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), |