moved default rules to component style.js files, added some basic text inheritance

This commit is contained in:
Henry Jameson 2024-02-01 01:27:30 +02:00
commit d4795d2e3c
8 changed files with 90 additions and 73 deletions

View file

@ -15,5 +15,20 @@ export default {
validInnerComponents: [
'Text',
'Icon'
],
defaultRules: [
{
component: 'Button',
directives: {
background: '--fg'
}
},
{
component: 'Button',
state: ['hover'],
directives: {
background: '#FFFFFF'
}
}
]
}

View file

@ -16,7 +16,6 @@ export default {
component: 'Link',
state: ['faint'],
directives: {
textColor: '--link',
textOpacity: 0.5,
textOpacityMode: 'fake'
}

View file

@ -7,5 +7,13 @@ export default {
'Icon',
'Button',
'PanelHeader'
],
defaultRules: [
{
component: 'Panel',
directives: {
background: '--fg'
}
}
]
}

View file

@ -6,5 +6,14 @@ export default {
'Link',
'Icon',
'Button'
],
defaultRules: [
{
component: 'PanelHeader',
directives: {
background: '--fg'
// opacity: 0.9
}
}
]
}

View file

@ -19,7 +19,6 @@ export default {
component: 'Text',
state: ['faint'],
directives: {
textColor: '--text',
textOpacity: 0.5
}
},
@ -29,15 +28,6 @@ export default {
directives: {
textColor: '--cGreen'
}
},
{
component: 'Text',
variant: 'greentext',
state: ['faint'],
directives: {
textColor: '--cGreen',
textOpacity: 0.5
}
}
]
}

View file

@ -4,5 +4,16 @@ export default {
outOfTreeSelector: '.underlay',
validInnerComponents: [
'Panel'
],
defaultRules: [
{
component: 'Underlay',
// variant: 'normal',
// state: 'normal'
directives: {
background: '#000000',
opacity: 0.2
}
}
]
}