forked from AkkomaGang/akkoma-fe
fallback for some weird case on my phone
This commit is contained in:
parent
d756455c34
commit
dd4deae66e
1 changed files with 4 additions and 4 deletions
|
@ -205,10 +205,10 @@ const generateColors = (input) => {
|
||||||
|
|
||||||
colors.icon = mixrgb(colors.bg, colors.text)
|
colors.icon = mixrgb(colors.bg, colors.text)
|
||||||
|
|
||||||
colors.cBlue = col.cBlue
|
colors.cBlue = col.cBlue || hex2rgb('#0000FF')
|
||||||
colors.cRed = col.cRed
|
colors.cRed = col.cRed || hex2rgb('#FF0000')
|
||||||
colors.cGreen = col.cGreen
|
colors.cGreen = col.cGreen || hex2rgb('#00FF00')
|
||||||
colors.cOrange = col.cOrange
|
colors.cOrange = col.cOrange || hex2rgb('#E3FF00')
|
||||||
|
|
||||||
colors.alertError = col.alertError || Object.assign({}, col.cRed)
|
colors.alertError = col.alertError || Object.assign({}, col.cRed)
|
||||||
colors.alertErrorText = getTextColor(alphaBlend(colors.alertError, opacity.alert, colors.bg), colors.text)
|
colors.alertErrorText = getTextColor(alphaBlend(colors.alertError, opacity.alert, colors.bg), colors.text)
|
||||||
|
|
Loading…
Reference in a new issue