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:57 -0700 |
commit | 187ff8358476e53cdd34a45843dbf2f0eb427ed9 (patch) | |
tree | 01fb408c8835bdcf360953960869d1735208ec3b /apps/theming/lib | |
parent | fe098ff6fb1d1fbbfbc5bb2774237b529f49b08d (diff) | |
download | nextcloud-server-187ff8358476e53cdd34a45843dbf2f0eb427ed9.tar.gz nextcloud-server-187ff8358476e53cdd34a45843dbf2f0eb427ed9.zip |
enh(theming): Success 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 85e4d4708cc..0d40bda6b09 100644 --- a/apps/theming/lib/Themes/DarkTheme.php +++ b/apps/theming/lib/Themes/DarkTheme.php @@ -61,6 +61,7 @@ class DarkTheme extends DefaultTheme implements ITheme { $colorError = '#e9322d'; $colorWarning = '#c28900'; + $colorSuccess = '#3fa857'; return array_merge( $defaultVariables, @@ -93,6 +94,10 @@ class DarkTheme extends DefaultTheme implements ITheme { '--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, // 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 3238ed00564..432dc900182 100644 --- a/apps/theming/lib/Themes/DefaultTheme.php +++ b/apps/theming/lib/Themes/DefaultTheme.php @@ -111,6 +111,7 @@ class DefaultTheme implements ITheme { $colorError = '#e9322d'; $colorWarning = '#c28900'; + $colorSuccess = '#3fa857'; $variables = [ '--color-main-background' => $colorMainBackground, @@ -149,9 +150,10 @@ class DefaultTheme implements ITheme { '--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), + '--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-info' => '#006aa3', '--color-info-rgb' => join(',', $this->util->hexToRGB('#006aa3')), '--color-info-hover' => $this->util->mix('#006aa3', $colorMainBackground, 60), |