From: Julius Härtl Date: Mon, 22 Aug 2022 15:44:57 +0000 (+0200) Subject: Fix gradient using the wrong target value X-Git-Tag: v25.0.0beta4~41^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F33641%2Fhead;p=nextcloud-server.git Fix gradient using the wrong target value Signed-off-by: Julius Härtl --- diff --git a/apps/theming/css/default.css b/apps/theming/css/default.css index 41a1167a4a5..134e6e0aad0 100644 --- a/apps/theming/css/default.css +++ b/apps/theming/css/default.css @@ -18,10 +18,13 @@ --color-primary-light-hover: #dbe7ee; --color-primary-text-dark: #ededed; --color-primary-element: #0082c9; - --color-primary-element-hover: #198ece; - --color-primary-element-light: #17adff; - --color-primary-element-lighter: #d8ecf6; - --gradient-primary-background: linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-element-light) 100%); + --color-primary-element-text: #ffffff; + --color-primary-element-hover: #329bd3; + --color-primary-element-light: #e5f2f9; + --color-primary-element-light-text: #0082c9; + --color-primary-element-light-hover: #dbe7ee; + --color-primary-element-text-dark: #ededed; + --gradient-primary-background: linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-hover) 100%); --color-main-text: #222222; --color-text-maxcontrast: #767676; --color-text-light: #222222; diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php index 5c6d237e5e3..42b335dbe08 100644 --- a/apps/theming/lib/Themes/DefaultTheme.php +++ b/apps/theming/lib/Themes/DefaultTheme.php @@ -131,7 +131,7 @@ class DefaultTheme implements ITheme { '--color-primary-element-light-hover' => $this->util->mix($colorPrimaryElementLight, $colorMainText, 90), '--color-primary-element-text-dark' => $this->util->darken($this->util->invertTextColor($colorPrimaryElement) ? '#000000' : '#ffffff', 7), // 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%)', + '--gradient-primary-background' => 'linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-hover) 100%)', // max contrast for WCAG compliance '--color-main-text' => $colorMainText,