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 6e2a1d7b..ebde4475 100644 --- a/src/components/style_switcher/style_switcher.js +++ b/src/components/style_switcher/style_switcher.js @@ -74,6 +74,7 @@ export default { topBarLinkColorLocal: undefined, alertErrorColorLocal: undefined, + alertWarningColorLocal: undefined, badgeOpacityLocal: undefined, badgeNotificationColorLocal: undefined, @@ -147,6 +148,7 @@ export default { btnText: this.btnTextColorLocal, alertError: this.alertErrorColorLocal, + alertWarning: this.alertWarningColorLocal, badgeNotification: this.badgeNotificationColorLocal, faint: this.faintColorLocal, @@ -230,6 +232,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 944debab..ad032041 100644 --- a/src/components/style_switcher/style_switcher.vue +++ b/src/components/style_switcher/style_switcher.vue @@ -201,6 +201,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> |
