removed one color TODO

This commit is contained in:
Henry Jameson 2020-01-28 02:03:21 +02:00
parent 53a15eec7d
commit b63e679a31
5 changed files with 47 additions and 12 deletions

View file

@ -1,4 +1,4 @@
import { brightness } from 'chromatism'
import { invertLightness, brightness } from 'chromatism'
import { alphaBlend, mixrgb } from '../color_convert/color_convert.js'
/* This is a definition of all layer combinations
* each key is a topmost layer, each value represents layer underneath
@ -574,6 +574,24 @@ export const SLOT_INHERITANCE = {
textColor: true
},
alertNeutral: {
depends: ['text'],
opacity: 'alert'
},
alertNeutralText: {
depends: ['text'],
layer: 'alert',
variant: 'alertNeutral',
color: (mod, text) => invertLightness(text).rgb,
textColor: true
},
alertNeutralPanelText: {
depends: ['panelText'],
layer: 'alertPanel',
variant: 'alertNeutral',
textColor: true
},
badgeNotification: '--cRed',
badgeNotificationText: {
depends: ['text', 'badgeNotification'],