Skip to content

Commit bc1f918

Browse files
authored
Merge pull request nextcloud#54624 from nextcloud/fix/missing-variable
fix(theming): add missing `color-text-success` variable
2 parents 985eca3 + 55f968a commit bc1f918

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

apps/theming/css/default.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
--color-text-maxcontrast-default: #6b6b6b;
2020
--color-text-maxcontrast-background-blur: #595959;
2121
--color-text-error: #c90000;
22+
--color-text-success: #066e03;
2223
/** @deprecated use ` --color-main-text` instead */
2324
--color-text-light: var(--color-main-text);
2425
/** @deprecated use `--color-text-maxcontrast` instead */

apps/theming/lib/Themes/DarkHighContrastTheme.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ public function getCSSVariables(): array {
6767
'--color-text-maxcontrast' => $colorMainText,
6868
'--color-text-maxcontrast-background-blur' => $colorMainText,
6969
'--color-text-error' => $this->util->lighten($colorError, 65),
70-
'--color-text-light' => $colorMainText,
71-
'--color-text-lighter' => $colorMainText,
70+
'--color-text-success' => $this->util->lighten($colorSuccess, 65),
7271

7372
'--color-error' => $colorError,
7473
'--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)),

apps/theming/lib/Themes/DarkTheme.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ public function getCSSVariables(): array {
8383
'--color-text-maxcontrast-default' => $colorTextMaxcontrast,
8484
'--color-text-maxcontrast-background-blur' => $this->util->lighten($colorTextMaxcontrast, 6),
8585
'--color-text-error' => $colorErrorElement,
86-
'--color-text-light' => 'var(--color-main-text)', // deprecated
87-
'--color-text-lighter' => 'var(--color-text-maxcontrast)', // deprecated
86+
'--color-text-success' => $this->util->lighten($colorSuccessElement, 10),
8887

8988
'--color-error' => $colorError,
9089
'--color-error-hover' => $this->util->lighten($colorError, 10),

apps/theming/lib/Themes/DefaultTheme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public function getCSSVariables(): array {
129129
'--color-text-maxcontrast-default' => $colorTextMaxcontrast,
130130
'--color-text-maxcontrast-background-blur' => $this->util->darken($colorTextMaxcontrast, 7),
131131
'--color-text-error' => $colorErrorElement,
132+
'--color-text-success' => $this->util->darken($colorSuccessElement, 10),
132133
'--color-text-light' => 'var(--color-main-text)', // deprecated
133134
'--color-text-lighter' => 'var(--color-text-maxcontrast)', // deprecated
134135

apps/theming/lib/Themes/HighContrastTheme.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ public function getCSSVariables(): array {
7070
'--color-text-maxcontrast' => $colorMainText,
7171
'--color-text-maxcontrast-background-blur' => $colorMainText,
7272
'--color-text-error' => $this->util->darken($colorError, 65),
73-
'--color-text-light' => $colorMainText,
74-
'--color-text-lighter' => $colorMainText,
73+
'--color-text-success' => $this->util->darken($colorSuccess, 70),
7574

7675
'--color-error' => $colorError,
7776
'--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)),

apps/theming/tests/Themes/AccessibleThemeTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public static function dataAccessibilityPairs(): array {
150150
'error-text-on-background' => [
151151
[
152152
'--color-text-error',
153+
'--color-text-success',
153154
],
154155
[
155156
'--color-main-background',

0 commit comments

Comments
 (0)