changed opacity on disabled, secondary and secondary shade in both themes (#38453)

This commit is contained in:
Patrick O'Carroll 2021-08-25 09:47:46 +02:00 committed by GitHub
parent 2e8a7c1161
commit 84de946daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,8 +108,8 @@ class DarkColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
};
secondary = {
main: `rgba(${this.whiteBase}, 0.1)`,
shade: `rgba(${this.whiteBase}, 0.15)`,
main: `rgba(${this.whiteBase}, 0.16)`,
shade: `rgba(${this.whiteBase}, 0.20)`,
text: this.text.primary,
contrastText: `rgb(${this.whiteBase})`,
border: this.border.strong,
@ -144,7 +144,7 @@ class DarkColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
focus: `rgba(${this.whiteBase}, 0.16)`,
hoverOpacity: 0.08,
disabledText: this.text.disabled,
disabledBackground: `rgba(${this.whiteBase}, 0.07)`,
disabledBackground: `rgba(${this.whiteBase}, 0.04)`,
disabledOpacity: 0.38,
};
@ -184,8 +184,8 @@ class LightColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
};
secondary = {
main: `rgba(${this.blackBase}, 0.11)`,
shade: `rgba(${this.blackBase}, 0.16)`,
main: `rgba(${this.blackBase}, 0.16)`,
shade: `rgba(${this.blackBase}, 0.20)`,
contrastText: `rgba(${this.blackBase}, 1)`,
text: this.text.primary,
border: this.border.strong,
@ -223,7 +223,7 @@ class LightColors implements ThemeColorsBase<Partial<ThemeRichColor>> {
selected: `rgba(${this.blackBase}, 0.08)`,
hoverOpacity: 0.08,
focus: `rgba(${this.blackBase}, 0.12)`,
disabledBackground: `rgba(${this.blackBase}, 0.07)`,
disabledBackground: `rgba(${this.blackBase}, 0.04)`,
disabledText: this.text.disabled,
disabledOpacity: 0.38,
};