diff options
| author | Henry Jameson <me@hjkos.com> | 2018-11-13 16:30:01 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-11-13 16:30:01 +0300 |
| commit | 1723f427f59bb6bf62bb35de93c7226aef2e8727 (patch) | |
| tree | 925933a592cd05329810d83e347d7bd50a50116b /src/components/style_switcher/style_switcher.js | |
| parent | 7b657fcccd3524aba552cab4ee1005057fd83d41 (diff) | |
updates
Diffstat (limited to 'src/components/style_switcher/style_switcher.js')
| -rw-r--r-- | src/components/style_switcher/style_switcher.js | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js index 7f794608..8953dc49 100644 --- a/src/components/style_switcher/style_switcher.js +++ b/src/components/style_switcher/style_switcher.js @@ -39,6 +39,10 @@ export default { topBarLinkColorLocal: undefined, alertOpacityLocal: undefined, + alertErrorColorLocal: undefined, + + badgeOpacityLocal: undefined, + badgeNotificationColorLocal: undefined, borderColorLocal: undefined, borderOpacityLocal: undefined, @@ -102,6 +106,9 @@ export default { btn: this.btnColorLocal, btnText: this.btnTextColorLocal, + alertError: this.alertErrorColorLocal, + badgeNotification: this.badgeNotificationColorLocal, + faint: this.faintColorLocal, faintLink: this.faintLinkColorLocal, border: this.borderColorLocal, @@ -116,6 +123,8 @@ export default { btn: this.btnOpacityLocal, input: this.inputOpacityLocal, panel: this.panelOpacityLocal, + alert: this.alertOpacityLocal, + badge: this.badgeOpacityLocal, topBar: this.topBarOpacityLocal, border: this.borderOpacityLocal, faint: this.faintOpacityLocal @@ -167,6 +176,7 @@ export default { panelText: hex2rgb(colors.panelText), btnText: hex2rgb(colors.btnText), topBarText: hex2rgb(colors.topBarText), + inputText: hex2rgb(colors.inputText), link: hex2rgb(colors.link), topBarLink: hex2rgb(colors.topBarLink), @@ -181,7 +191,10 @@ export default { bg: hex2rgb(colors.bg), btn: hex2rgb(colors.btn), panel: hex2rgb(colors.panel), - topBar: hex2rgb(colors.topBar) + topBar: hex2rgb(colors.topBar), + input: hex2rgb(colors.input), + alertError: hex2rgb(colors.alertError), + badgeNotification: hex2rgb(colors.badgeNotification) } const ratios = { @@ -198,6 +211,10 @@ export default { btnText: getContrastRatio(worstCase(bgs.btn, opacity.btn, fgs.btnText), fgs.btnText), + inputText: getContrastRatio(worstCase(bgs.input, opacity.input, fgs.inputText), fgs.inputText), + + badgeNotification: getContrastRatio(worstCase(bgs.badgeNotification, opacity.badge, fgs.text), fgs.text), + topBarText: getContrastRatio(worstCase(bgs.topBar, opacity.topBar, fgs.topBarText), fgs.topBarText), topBarLink: getContrastRatio(worstCase(bgs.topBar, opacity.topBar, fgs.topBarLink), fgs.topBarLink) } @@ -317,6 +334,10 @@ export default { this.faintColorLocal = undefined this.faintOpacityLocal = undefined this.faintLinkColorLocal = undefined + + this.alertErrorColorLocal = undefined + + this.badgeNotificationColorLocal = undefined }, /** @@ -348,6 +369,7 @@ export default { } const keys = new Set(version !== 1 ? Object.keys(colors) : []) + console.log(keys) if (version === 1) { // V1 ignores the rest this.clearV1() |
