mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #54624 from nextcloud/fix/missing-variable
fix(theming): add missing `color-text-success` variable
This commit is contained in:
commit
bc1f9184b7
6 changed files with 6 additions and 6 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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)),
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)),
|
||||
|
|
|
|||
|
|
@ -150,6 +150,7 @@ class AccessibleThemeTestCase extends TestCase {
|
|||
'error-text-on-background' => [
|
||||
[
|
||||
'--color-text-error',
|
||||
'--color-text-success',
|
||||
],
|
||||
[
|
||||
'--color-main-background',
|
||||
|
|
|
|||
Loading…
Reference in a new issue