poll slot renamed, lightBg customization implemented
This commit is contained in:
parent
40ba3e2252
commit
8f63bbb64f
11 changed files with 94 additions and 13 deletions
|
@ -163,8 +163,10 @@ export const generateColors = (themeData) => {
|
|||
return
|
||||
}
|
||||
if (k === 'faint') {
|
||||
colors[k + 'Link'].a = v
|
||||
colors['faintLink'].a = v
|
||||
colors['panelFaint'].a = v
|
||||
colors['lightBgFaintText'].a = v
|
||||
colors['lightBgFaintLink'].a = v
|
||||
}
|
||||
if (k === 'bg') {
|
||||
colors['lightBg'].a = v
|
||||
|
|
|
@ -12,6 +12,7 @@ export const LAYERS = {
|
|||
badge: null, // no transparency support
|
||||
fg: null,
|
||||
bg: 'underlay',
|
||||
lightBg: 'bg',
|
||||
panel: 'bg',
|
||||
btn: 'bg',
|
||||
btnPanel: 'panel',
|
||||
|
@ -57,6 +58,31 @@ export const SLOT_INHERITANCE = {
|
|||
depends: ['bg'],
|
||||
color: (mod, bg) => brightness(5 * mod, bg).rgb
|
||||
},
|
||||
lightBgFaintText: {
|
||||
depends: ['faint'],
|
||||
layer: 'lightBg',
|
||||
textColor: true
|
||||
},
|
||||
lightBgFaintLink: {
|
||||
depends: ['faintLink'],
|
||||
layer: 'lightBg',
|
||||
textColor: 'preserve'
|
||||
},
|
||||
lightBgText: {
|
||||
depends: ['text'],
|
||||
layer: 'lightBg',
|
||||
textColor: true
|
||||
},
|
||||
lightBgLink: {
|
||||
depends: ['link'],
|
||||
layer: 'lightBg',
|
||||
textColor: 'preserve'
|
||||
},
|
||||
lightBgIcon: {
|
||||
depends: ['lightBg', 'lightBgText'],
|
||||
color: (mod, bg, text) => mixrgb(bg, text)
|
||||
},
|
||||
|
||||
lightText: {
|
||||
depends: ['text'],
|
||||
color: (mod, text) => brightness(20 * mod, text).rgb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue