diff options
| author | Henry Jameson <me@hjkos.com> | 2019-10-07 23:46:40 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-10-08 21:38:27 +0300 |
| commit | 6511a744a29c760aa2613b0902db55be3b59dfa5 (patch) | |
| tree | ec75aa5650a6803abf1f5c4e90b9bac24686f11a /src/services/style_setter/style_setter.js | |
| parent | 29e6e62e7cbddf8e936bdfbdb2ecb935bb297cec (diff) | |
arbitrary limit with option to overcome it
Diffstat (limited to 'src/services/style_setter/style_setter.js')
| -rw-r--r-- | src/services/style_setter/style_setter.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js index 1cf7edc3..eaa495c4 100644 --- a/src/services/style_setter/style_setter.js +++ b/src/services/style_setter/style_setter.js @@ -215,6 +215,10 @@ const generateColors = (input) => { colors.alertErrorText = getTextColor(alphaBlend(colors.alertError, opacity.alert, colors.bg), colors.text) colors.alertErrorPanelText = getTextColor(alphaBlend(colors.alertError, opacity.alert, colors.panel), colors.panelText) + colors.alertWarning = col.alertWarning || Object.assign({}, colors.cOrange) + colors.alertWarningText = getTextColor(alphaBlend(colors.alertWarning, opacity.alert, colors.bg), colors.text) + colors.alertWarningPanelText = getTextColor(alphaBlend(colors.alertWarning, opacity.alert, colors.panel), colors.panelText) + colors.badgeNotification = col.badgeNotification || Object.assign({}, colors.cRed) colors.badgeNotificationText = contrastRatio(colors.badgeNotification).rgb @@ -222,6 +226,7 @@ const generateColors = (input) => { if (typeof v === 'undefined') return if (k === 'alert') { colors.alertError.a = v + colors.alertWarning.a = v return } if (k === 'faint') { |
