From dd4deae66e5bb1b856898f9d1a4195b52427cdb0 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 2 Dec 2018 15:03:51 +0300 Subject: [PATCH] fallback for some weird case on my phone --- src/services/style_setter/style_setter.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js index 44a36c88..33aba32c 100644 --- a/src/services/style_setter/style_setter.js +++ b/src/services/style_setter/style_setter.js @@ -205,10 +205,10 @@ const generateColors = (input) => { colors.icon = mixrgb(colors.bg, colors.text) - colors.cBlue = col.cBlue - colors.cRed = col.cRed - colors.cGreen = col.cGreen - colors.cOrange = col.cOrange + colors.cBlue = col.cBlue || hex2rgb('#0000FF') + colors.cRed = col.cRed || hex2rgb('#FF0000') + colors.cGreen = col.cGreen || hex2rgb('#00FF00') + colors.cOrange = col.cOrange || hex2rgb('#E3FF00') colors.alertError = col.alertError || Object.assign({}, col.cRed) colors.alertErrorText = getTextColor(alphaBlend(colors.alertError, opacity.alert, colors.bg), colors.text)