diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-06-05 17:28:19 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-06-06 08:47:56 -0700 |
commit | fe098ff6fb1d1fbbfbc5bb2774237b529f49b08d (patch) | |
tree | 9fcd545c77264e9695f1cbe3b8d55252e84a1346 /apps/theming/lib | |
parent | 27ebaea10c3b7868379150d0e44e17baefb3eb00 (diff) | |
download | nextcloud-server-fe098ff6fb1d1fbbfbc5bb2774237b529f49b08d.tar.gz nextcloud-server-fe098ff6fb1d1fbbfbc5bb2774237b529f49b08d.zip |
enh(theming): Warning contrast
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/Themes/DarkTheme.php | 5 | ||||
-rw-r--r-- | apps/theming/lib/Themes/DefaultTheme.php | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/apps/theming/lib/Themes/DarkTheme.php b/apps/theming/lib/Themes/DarkTheme.php index 6c90c8e5aa5..85e4d4708cc 100644 --- a/apps/theming/lib/Themes/DarkTheme.php +++ b/apps/theming/lib/Themes/DarkTheme.php @@ -60,6 +60,7 @@ class DarkTheme extends DefaultTheme implements ITheme { $colorBoxShadowRGB = join(',', $this->util->hexToRGB($colorBoxShadow)); $colorError = '#e9322d'; + $colorWarning = '#c28900'; return array_merge( $defaultVariables, @@ -88,6 +89,10 @@ class DarkTheme extends DefaultTheme implements ITheme { '--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)), '--color-error-hover' => $this->util->mix($colorError, $colorMainBackground, 60), '--color-error-text' => $this->util->lighten($colorError, 3), + '--color-warning' => $colorWarning, + '--color-warning-rgb' => join(',', $this->util->hexToRGB($colorWarning)), + '--color-warning-hover' => $this->util->mix($colorWarning, $colorMainBackground, 60), + '--color-warning-text' => $colorWarning, // used for the icon loading animation '--color-loading-light' => '#777', diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php index 3df6ce081f1..3238ed00564 100644 --- a/apps/theming/lib/Themes/DefaultTheme.php +++ b/apps/theming/lib/Themes/DefaultTheme.php @@ -110,6 +110,7 @@ class DefaultTheme implements ITheme { $colorBoxShadowRGB = join(',', $this->util->hexToRGB($colorBoxShadow)); $colorError = '#e9322d'; + $colorWarning = '#c28900'; $variables = [ '--color-main-background' => $colorMainBackground, @@ -144,9 +145,10 @@ class DefaultTheme implements ITheme { '--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)), '--color-error-hover' => $this->util->mix($colorError, $colorMainBackground, 60), '--color-error-text' => $this->util->darken($colorError, 4), - '--color-warning' => '#eca700', - '--color-warning-rgb' => join(',', $this->util->hexToRGB('#eca700')), - '--color-warning-hover' => $this->util->mix('#eca700', $colorMainBackground, 60), + '--color-warning' => $colorWarning, + '--color-warning-rgb' => join(',', $this->util->hexToRGB($colorWarning)), + '--color-warning-hover' => $this->util->mix($colorWarning, $colorMainBackground, 60), + '--color-warning-text' => $this->util->darken($colorWarning, 8), '--color-success' => '#46ba61', '--color-success-rgb' => join(',', $this->util->hexToRGB('#46ba61')), '--color-success-hover' => $this->util->mix('#46ba61', $colorMainBackground, 60), |