From e95b6c7e538e5b65ee81fd5e5d3cb905609c6bab Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 2 Dec 2018 15:20:25 +0300 Subject: [PATCH] fix --- src/services/style_setter/style_setter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js index 5720d02d..445d3c49 100644 --- a/src/services/style_setter/style_setter.js +++ b/src/services/style_setter/style_setter.js @@ -210,11 +210,11 @@ const generateColors = (input) => { colors.cGreen = col.cGreen || hex2rgb('#00FF00') colors.cOrange = col.cOrange || hex2rgb('#E3FF00') - colors.alertError = col.alertError || Object.assign({}, col.cRed) + colors.alertError = col.alertError || Object.assign({}, colors.cRed) 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.badgeNotification = col.badgeNotification || Object.assign({}, col.cRed) + colors.badgeNotification = col.badgeNotification || Object.assign({}, colors.cRed) colors.badgeNotificationText = contrastRatio(colors.badgeNotification).rgb Object.entries(opacity).forEach(([ k, v ]) => {