diff --git a/apps/theming/css/default.css b/apps/theming/css/default.css index 0b19184a9a3..3060e804395 100644 --- a/apps/theming/css/default.css +++ b/apps/theming/css/default.css @@ -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 */ diff --git a/apps/theming/lib/Themes/DarkHighContrastTheme.php b/apps/theming/lib/Themes/DarkHighContrastTheme.php index 8d63cdb612d..fd61db1515f 100644 --- a/apps/theming/lib/Themes/DarkHighContrastTheme.php +++ b/apps/theming/lib/Themes/DarkHighContrastTheme.php @@ -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)), diff --git a/apps/theming/lib/Themes/DarkTheme.php b/apps/theming/lib/Themes/DarkTheme.php index 3f09096d84a..76cd71c4b11 100644 --- a/apps/theming/lib/Themes/DarkTheme.php +++ b/apps/theming/lib/Themes/DarkTheme.php @@ -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), diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php index a272e8e0210..75e3111de62 100644 --- a/apps/theming/lib/Themes/DefaultTheme.php +++ b/apps/theming/lib/Themes/DefaultTheme.php @@ -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 diff --git a/apps/theming/lib/Themes/HighContrastTheme.php b/apps/theming/lib/Themes/HighContrastTheme.php index b504d07ab36..d0e3be1c190 100644 --- a/apps/theming/lib/Themes/HighContrastTheme.php +++ b/apps/theming/lib/Themes/HighContrastTheme.php @@ -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)), diff --git a/apps/theming/tests/Themes/AccessibleThemeTestCase.php b/apps/theming/tests/Themes/AccessibleThemeTestCase.php index 328500d5df0..1ad8b1bc82d 100644 --- a/apps/theming/tests/Themes/AccessibleThemeTestCase.php +++ b/apps/theming/tests/Themes/AccessibleThemeTestCase.php @@ -150,6 +150,7 @@ class AccessibleThemeTestCase extends TestCase { 'error-text-on-background' => [ [ '--color-text-error', + '--color-text-success', ], [ '--color-main-background',