mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
enh(theming): Warning contrast
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
27ebaea10c
commit
fe098ff6fb
3 changed files with 14 additions and 6 deletions
|
|
@ -21,9 +21,10 @@
|
|||
--color-error-rgb: 233,50,45;
|
||||
--color-error-hover: #ed5a56;
|
||||
--color-error-text: #e7201b;
|
||||
--color-warning: #eca700;
|
||||
--color-warning-rgb: 236,167,0;
|
||||
--color-warning-hover: #efb832;
|
||||
--color-warning: #c28900;
|
||||
--color-warning-rgb: 194,137,0;
|
||||
--color-warning-hover: #cea032;
|
||||
--color-warning-text: #996c00;
|
||||
--color-success: #46ba61;
|
||||
--color-success-rgb: 70,186,97;
|
||||
--color-success-hover: #6ac780;
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue