Skip to content

Commit 81775b2

Browse files
committed
fix(theming): Adjust color-error and color-success to work for input border colors
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 10c6fec commit 81775b2

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

apps/theming/css/default.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
/** @deprecated use `--color-text-maxcontrast` instead */
2222
--color-text-lighter: var(--color-text-maxcontrast);
2323
--color-scrollbar: rgba(34,34,34, .15);
24-
--color-error: #C00505;
25-
--color-error-rgb: 192,5,5;
26-
--color-error-hover: #c72424;
27-
--color-error-text: #C00505;
24+
--color-error: #DB0606;
25+
--color-error-rgb: 219,6,6;
26+
--color-error-hover: #df2525;
27+
--color-error-text: #c20505;
2828
--color-warning: #A37200;
2929
--color-warning-rgb: 163,114,0;
3030
--color-warning-hover: #8a6000;

apps/theming/lib/Themes/DarkTheme.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ public function getDescription(): string {
5252
public function getCSSVariables(): array {
5353
$defaultVariables = parent::getCSSVariables();
5454

55-
$colorMainText = '#D8D8D8';
55+
$colorMainText = '#EBEBEB';
5656
$colorMainBackground = '#171717';
5757
$colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground));
58-
$colorTextMaxcontrast = $this->util->darken($colorMainText, 28);
58+
$colorTextMaxcontrast = $this->util->darken($colorMainText, 32);
5959

6060
$colorBoxShadow = $this->util->darken($colorMainBackground, 70);
6161
$colorBoxShadowRGB = join(',', $this->util->hexToRGB($colorBoxShadow));
6262

63-
$colorError = '#FF5252';
63+
$colorError = '#FF3333';
6464
$colorWarning = '#FFCC00';
65-
$colorSuccess = '#50BB50';
65+
$colorSuccess = '#3B973B';
6666
$colorInfo = '#00AEFF';
6767

6868
return array_merge(
@@ -92,15 +92,15 @@ public function getCSSVariables(): array {
9292
'--color-error' => $colorError,
9393
'--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)),
9494
'--color-error-hover' => $this->util->lighten($colorError, 10),
95-
'--color-error-text' => $this->util->lighten($colorError, 10),
95+
'--color-error-text' => $this->util->lighten($colorError, 15),
9696
'--color-warning' => $colorWarning,
9797
'--color-warning-rgb' => join(',', $this->util->hexToRGB($colorWarning)),
9898
'--color-warning-hover' => $this->util->lighten($colorWarning, 10),
9999
'--color-warning-text' => $colorWarning,
100100
'--color-success' => $colorSuccess,
101101
'--color-success-rgb' => join(',', $this->util->hexToRGB($colorSuccess)),
102102
'--color-success-hover' => $this->util->lighten($colorSuccess, 10),
103-
'--color-success-text' => $colorSuccess,
103+
'--color-success-text' => $this->util->lighten($colorSuccess, 15),
104104
'--color-info' => $colorInfo,
105105
'--color-info-rgb' => join(',', $this->util->hexToRGB($colorInfo)),
106106
'--color-info-hover' => $this->util->lighten($colorInfo, 10),

apps/theming/lib/Themes/DefaultTheme.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function getCSSVariables(): array {
111111
$colorBoxShadow = $this->util->darken($colorMainBackground, 70);
112112
$colorBoxShadowRGB = join(',', $this->util->hexToRGB($colorBoxShadow));
113113

114-
$colorError = '#C00505';
114+
$colorError = '#DB0606';
115115
$colorWarning = '#A37200';
116116
$colorSuccess = '#2d7b41';
117117
$colorInfo = '#0071ad';
@@ -148,7 +148,7 @@ public function getCSSVariables(): array {
148148
'--color-error' => $colorError,
149149
'--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)),
150150
'--color-error-hover' => $this->util->mix($colorError, $colorMainBackground, 75),
151-
'--color-error-text' => $colorError,
151+
'--color-error-text' => $this->util->darken($colorError, 5),
152152
'--color-warning' => $colorWarning,
153153
'--color-warning-rgb' => join(',', $this->util->hexToRGB($colorWarning)),
154154
'--color-warning-hover' => $this->util->darken($colorWarning, 5),

0 commit comments

Comments
 (0)