summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-05-12 11:23:11 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-05-13 16:13:01 +0200
commit264adf0c3bb8876dde04b2fb93c5554aae91aa9c (patch)
treea89b7bc0ebdeb725c14cb90d7b62af1fa0c61ce6 /apps/theming
parentb8a7ab9941352e48123ba82038081f119beb5147 (diff)
downloadnextcloud-server-264adf0c3bb8876dde04b2fb93c5554aae91aa9c.tar.gz
nextcloud-server-264adf0c3bb8876dde04b2fb93c5554aae91aa9c.zip
Fix profile and add gradient-primary-background
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index 180b1106595..58983d29df1 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -121,6 +121,8 @@ class DefaultTheme implements ITheme {
'--color-primary-element-hover' => $this->util->mix($this->util->elementColor($this->primaryColor), $colorMainBackground, 80),
'--color-primary-element-light' => $this->util->lighten($this->util->elementColor($this->primaryColor), 15),
'--color-primary-element-lighter' => $this->util->mix($this->util->elementColor($this->primaryColor), $colorMainBackground, -70),
+ // to use like this: background-image: var(--gradient-primary-background);
+ '--gradient-primary-background' => 'linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-element-light) 100%)',
// max contrast for WCAG compliance
'--color-main-text' => $colorMainText,