diff options
author | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2023-07-14 12:59:20 +0200 |
---|---|---|
committer | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2023-08-21 10:49:58 +0200 |
commit | d6fb961a945f0d31f562f2945bc3a5b1ca4aceb1 (patch) | |
tree | 2fe1fe0b2551b69399dff466d4ed1b39f0b44dba /apps/theming/lib | |
parent | f3a3ece9cc423634c616ce4ef1639e5e1533eded (diff) | |
download | nextcloud-server-d6fb961a945f0d31f562f2945bc3a5b1ca4aceb1.tar.gz nextcloud-server-d6fb961a945f0d31f562f2945bc3a5b1ca4aceb1.zip |
Change color of error and success
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/Themes/DarkTheme.php | 16 | ||||
-rw-r--r-- | apps/theming/lib/Themes/DefaultTheme.php | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/apps/theming/lib/Themes/DarkTheme.php b/apps/theming/lib/Themes/DarkTheme.php index 5500bae3b6d..80c65cd0eb6 100644 --- a/apps/theming/lib/Themes/DarkTheme.php +++ b/apps/theming/lib/Themes/DarkTheme.php @@ -59,10 +59,10 @@ class DarkTheme extends DefaultTheme implements ITheme { $colorBoxShadow = $this->util->darken($colorMainBackground, 70); $colorBoxShadowRGB = join(',', $this->util->hexToRGB($colorBoxShadow)); - $colorError = '#e9322d'; + $colorError = '#d91812'; $colorWarning = '#c28900'; - $colorSuccess = '#3fa857'; - $colorInfo = '#006aa3'; + $colorSuccess = '#2d7b41'; + $colorInfo = '#0071ad'; return array_merge( $defaultVariables, @@ -89,19 +89,19 @@ class DarkTheme extends DefaultTheme implements ITheme { '--color-error' => $colorError, '--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-error-hover' => $this->util->mix($colorError, $colorMainBackground, 85), + '--color-error-text' => $this->util->lighten($colorError, 12), '--color-warning' => $colorWarning, '--color-warning-rgb' => join(',', $this->util->hexToRGB($colorWarning)), '--color-warning-hover' => $this->util->mix($colorWarning, $colorMainBackground, 60), '--color-warning-text' => $colorWarning, '--color-success' => $colorSuccess, '--color-success-rgb' => join(',', $this->util->hexToRGB($colorSuccess)), - '--color-success-hover' => $this->util->mix($colorSuccess, $colorMainBackground, 60), - '--color-success-text' => $colorSuccess, + '--color-success-hover' => $this->util->mix($colorSuccess, $colorMainBackground, 85), + '--color-success-text' => $this->util->lighten($colorSuccess, 6), '--color-info' => $colorInfo, '--color-info-rgb' => join(',', $this->util->hexToRGB($colorInfo)), - '--color-info-hover' => $this->util->mix($colorInfo, $colorMainBackground, 60), + '--color-info-hover' => $this->util->mix($colorInfo, $colorMainBackground, 85), '--color-info-text' => $this->util->lighten($colorInfo, 9), // used for the icon loading animation diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php index 75d738f12ee..a0e417546c1 100644 --- a/apps/theming/lib/Themes/DefaultTheme.php +++ b/apps/theming/lib/Themes/DefaultTheme.php @@ -109,10 +109,10 @@ class DefaultTheme implements ITheme { $colorBoxShadow = $this->util->darken($colorMainBackground, 70); $colorBoxShadowRGB = join(',', $this->util->hexToRGB($colorBoxShadow)); - $colorError = '#e9322d'; + $colorError = '#d91812'; $colorWarning = '#c28900'; - $colorSuccess = '#3fa857'; - $colorInfo = '#006aa3'; + $colorSuccess = '#2d7b41'; + $colorInfo = '#0071ad'; $variables = [ '--color-main-background' => $colorMainBackground, @@ -145,7 +145,7 @@ class DefaultTheme implements ITheme { // error/warning/success/info feedback colours '--color-error' => $colorError, '--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)), - '--color-error-hover' => $this->util->mix($colorError, $colorMainBackground, 60), + '--color-error-hover' => $this->util->mix($colorError, $colorMainBackground, 75), '--color-error-text' => $this->util->darken($colorError, 4), '--color-warning' => $colorWarning, '--color-warning-rgb' => join(',', $this->util->hexToRGB($colorWarning)), @@ -153,12 +153,12 @@ class DefaultTheme implements ITheme { '--color-warning-text' => $this->util->darken($colorWarning, 8), '--color-success' => $colorSuccess, '--color-success-rgb' => join(',', $this->util->hexToRGB($colorSuccess)), - '--color-success-hover' => $this->util->mix($colorSuccess, $colorMainBackground, 60), - '--color-success-text' => $this->util->darken($colorSuccess, 10), + '--color-success-hover' => $this->util->mix($colorSuccess, $colorMainBackground, 78), + '--color-success-text' => $this->util->darken($colorSuccess, 4), '--color-info' => $colorInfo, '--color-info-rgb' => join(',', $this->util->hexToRGB($colorInfo)), - '--color-info-hover' => $this->util->mix($colorInfo, $colorMainBackground, 60), - '--color-info-text' => $colorInfo, + '--color-info-hover' => $this->util->mix($colorInfo, $colorMainBackground, 80), + '--color-info-text' => $this->util->darken($colorInfo, 4), // used for the icon loading animation '--color-loading-light' => '#cccccc', |