Merge pull request #54624 from nextcloud/fix/missing-variable

fix(theming): add missing `color-text-success` variable
This commit is contained in:
Ferdinand Thiessen 2025-08-25 19:45:43 +02:00 committed by GitHub
commit bc1f9184b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 6 deletions

View file

@ -19,6 +19,7 @@
--color-text-maxcontrast-default: #6b6b6b;
--color-text-maxcontrast-background-blur: #595959;
--color-text-error: #c90000;
--color-text-success: #066e03;
/** @deprecated use ` --color-main-text` instead */
--color-text-light: var(--color-main-text);
/** @deprecated use `--color-text-maxcontrast` instead */

View file

@ -67,8 +67,7 @@ class DarkHighContrastTheme extends DarkTheme implements ITheme {
'--color-text-maxcontrast' => $colorMainText,
'--color-text-maxcontrast-background-blur' => $colorMainText,
'--color-text-error' => $this->util->lighten($colorError, 65),
'--color-text-light' => $colorMainText,
'--color-text-lighter' => $colorMainText,
'--color-text-success' => $this->util->lighten($colorSuccess, 65),
'--color-error' => $colorError,
'--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)),

View file

@ -83,8 +83,7 @@ class DarkTheme extends DefaultTheme implements ITheme {
'--color-text-maxcontrast-default' => $colorTextMaxcontrast,
'--color-text-maxcontrast-background-blur' => $this->util->lighten($colorTextMaxcontrast, 6),
'--color-text-error' => $colorErrorElement,
'--color-text-light' => 'var(--color-main-text)', // deprecated
'--color-text-lighter' => 'var(--color-text-maxcontrast)', // deprecated
'--color-text-success' => $this->util->lighten($colorSuccessElement, 10),
'--color-error' => $colorError,
'--color-error-hover' => $this->util->lighten($colorError, 10),

View file

@ -129,6 +129,7 @@ class DefaultTheme implements ITheme {
'--color-text-maxcontrast-default' => $colorTextMaxcontrast,
'--color-text-maxcontrast-background-blur' => $this->util->darken($colorTextMaxcontrast, 7),
'--color-text-error' => $colorErrorElement,
'--color-text-success' => $this->util->darken($colorSuccessElement, 10),
'--color-text-light' => 'var(--color-main-text)', // deprecated
'--color-text-lighter' => 'var(--color-text-maxcontrast)', // deprecated

View file

@ -70,8 +70,7 @@ class HighContrastTheme extends DefaultTheme implements ITheme {
'--color-text-maxcontrast' => $colorMainText,
'--color-text-maxcontrast-background-blur' => $colorMainText,
'--color-text-error' => $this->util->darken($colorError, 65),
'--color-text-light' => $colorMainText,
'--color-text-lighter' => $colorMainText,
'--color-text-success' => $this->util->darken($colorSuccess, 70),
'--color-error' => $colorError,
'--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)),

View file

@ -150,6 +150,7 @@ class AccessibleThemeTestCase extends TestCase {
'error-text-on-background' => [
[
'--color-text-error',
'--color-text-success',
],
[
'--color-main-background',