diff options
Diffstat (limited to 'src/components/style_switcher')
| -rw-r--r-- | src/components/style_switcher/style_switcher.js | 3 | ||||
| -rw-r--r-- | src/components/style_switcher/style_switcher.vue | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js index 8c3d4861..ef5704c1 100644 --- a/src/components/style_switcher/style_switcher.js +++ b/src/components/style_switcher/style_switcher.js @@ -73,6 +73,7 @@ export default { topBarLinkColorLocal: undefined, alertErrorColorLocal: undefined, + alertWarningColorLocal: undefined, badgeOpacityLocal: undefined, badgeNotificationColorLocal: undefined, @@ -146,6 +147,7 @@ export default { btnText: this.btnTextColorLocal, alertError: this.alertErrorColorLocal, + alertWarning: this.alertWarningColorLocal, badgeNotification: this.badgeNotificationColorLocal, faint: this.faintColorLocal, @@ -229,6 +231,7 @@ export default { topBar: hex2rgb(colors.topBar), input: hex2rgb(colors.input), alertError: hex2rgb(colors.alertError), + alertWarning: hex2rgb(colors.alertWarning), badgeNotification: hex2rgb(colors.badgeNotification) } diff --git a/src/components/style_switcher/style_switcher.vue b/src/components/style_switcher/style_switcher.vue index d24394a4..d32641c2 100644 --- a/src/components/style_switcher/style_switcher.vue +++ b/src/components/style_switcher/style_switcher.vue @@ -216,6 +216,13 @@ :fallback="previewTheme.colors.alertError" /> <ContrastRatio :contrast="previewContrast.alertError" /> + <ColorInput + v-model="alertWarningColorLocal" + name="alertWarning" + :label="$t('settings.style.advanced_colors.alert_warning')" + :fallback="previewTheme.colors.alertWarning" + /> + <ContrastRatio :contrast="previewContrast.alertWarning" /> </div> <div class="color-item"> <h4>{{ $t('settings.style.advanced_colors.badge') }}</h4> |
