update, should inherit stuff properly now.
This commit is contained in:
parent
d4795d2e3c
commit
c34590c439
16 changed files with 804 additions and 236 deletions
58
src/services/theme_data/theme2_to_theme3.js
Normal file
58
src/services/theme_data/theme2_to_theme3.js
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
import allKeys from './theme2_keys'
|
||||
|
||||
// keys that are meant to be used globally, i.e. what's the rest of the theme is based upon.
|
||||
const basePaletteKeys = new Set([
|
||||
'bg',
|
||||
'fg',
|
||||
'text',
|
||||
'link',
|
||||
'accent',
|
||||
|
||||
'cBlue',
|
||||
'cRed',
|
||||
'cGreen',
|
||||
'cOrange'
|
||||
])
|
||||
|
||||
// Keys that are not available in editor and never meant to be edited
|
||||
const hiddenKeys = new Set([
|
||||
'profileBg',
|
||||
'profileTint'
|
||||
])
|
||||
|
||||
const extendedBasePrefixes = [
|
||||
'border',
|
||||
'icon',
|
||||
'highlight',
|
||||
'lightText',
|
||||
|
||||
'popover',
|
||||
|
||||
'panel',
|
||||
'topBar',
|
||||
'tab',
|
||||
'btn',
|
||||
'input',
|
||||
'selectedMenu',
|
||||
|
||||
'alert',
|
||||
'badge',
|
||||
|
||||
'post',
|
||||
'selectedPost', // wrong nomenclature
|
||||
'poll',
|
||||
|
||||
'chatBg',
|
||||
'chatMessageIncoming',
|
||||
'chatMessageOutgoing'
|
||||
]
|
||||
|
||||
const extendedBaseKeys = Object.fromEntries(extendedBasePrefixes.map(prefix => [prefix, allKeys.filter(k => k.startsWith(prefix))]))
|
||||
|
||||
// Keysets that are only really used intermideately, i.e. to generate other colors
|
||||
const temporary = new Set([
|
||||
'border',
|
||||
'highlight'
|
||||
])
|
||||
|
||||
const temporaryColors = {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue