Fix Autocolors on chrome browser.
This commit is contained in:
parent
77407ea7f1
commit
19b3846a5a
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 5.2.4
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
* Fix Autocolors on chrome browser
|
||||||
|
|
||||||
## 5.2.3
|
## 5.2.3
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
@ -20,18 +20,18 @@ function computeAutoColors (): AutoColors | null {
|
|||||||
const buttonStyles = window.getComputedStyle(button)
|
const buttonStyles = window.getComputedStyle(button)
|
||||||
|
|
||||||
const autocolors: AutoColors = {
|
const autocolors: AutoColors = {
|
||||||
mainForeground: styles.getPropertyValue('--mainForegroundColor'),
|
mainForeground: styles.getPropertyValue('--mainForegroundColor').trim(),
|
||||||
mainBackground: styles.getPropertyValue('--mainBackgroundColor'),
|
mainBackground: styles.getPropertyValue('--mainBackgroundColor').trim(),
|
||||||
greyForeground: styles.getPropertyValue('--greyForegroundColor'),
|
greyForeground: styles.getPropertyValue('--greyForegroundColor').trim(),
|
||||||
greyBackground: styles.getPropertyValue('--greyBackgroundColor'),
|
greyBackground: styles.getPropertyValue('--greyBackgroundColor').trim(),
|
||||||
menuForeground: styles.getPropertyValue('--menuForegroundColor'),
|
menuForeground: styles.getPropertyValue('--menuForegroundColor').trim(),
|
||||||
menuBackground: styles.getPropertyValue('--menuBackgroundColor'),
|
menuBackground: styles.getPropertyValue('--menuBackgroundColor').trim(),
|
||||||
inputForeground: styles.getPropertyValue('--inputForegroundColor'),
|
inputForeground: styles.getPropertyValue('--inputForegroundColor').trim(),
|
||||||
inputBackground: styles.getPropertyValue('--inputBackgroundColor'),
|
inputBackground: styles.getPropertyValue('--inputBackgroundColor').trim(),
|
||||||
buttonForeground: buttonStyles.color,
|
buttonForeground: buttonStyles.color.trim(),
|
||||||
buttonBackground: styles.getPropertyValue('--mainColor'),
|
buttonBackground: styles.getPropertyValue('--mainColor').trim(),
|
||||||
link: styles.getPropertyValue('--mainForegroundColor'),
|
link: styles.getPropertyValue('--mainForegroundColor').trim(),
|
||||||
linkHover: styles.getPropertyValue('--mainForegroundColor')
|
linkHover: styles.getPropertyValue('--mainForegroundColor').trim()
|
||||||
}
|
}
|
||||||
const autoColorsTest = areAutoColorsValid(autocolors)
|
const autoColorsTest = areAutoColorsValid(autocolors)
|
||||||
if (autoColorsTest !== true) {
|
if (autoColorsTest !== true) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user