moved default rules to component style.js files, added some basic text inheritance
This commit is contained in:
parent
53a4b1f9a6
commit
d4795d2e3c
8 changed files with 90 additions and 73 deletions
|
|
@ -15,5 +15,20 @@ export default {
|
|||
validInnerComponents: [
|
||||
'Text',
|
||||
'Icon'
|
||||
],
|
||||
defaultRules: [
|
||||
{
|
||||
component: 'Button',
|
||||
directives: {
|
||||
background: '--fg'
|
||||
}
|
||||
},
|
||||
{
|
||||
component: 'Button',
|
||||
state: ['hover'],
|
||||
directives: {
|
||||
background: '#FFFFFF'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ export default {
|
|||
component: 'Link',
|
||||
state: ['faint'],
|
||||
directives: {
|
||||
textColor: '--link',
|
||||
textOpacity: 0.5,
|
||||
textOpacityMode: 'fake'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,5 +7,13 @@ export default {
|
|||
'Icon',
|
||||
'Button',
|
||||
'PanelHeader'
|
||||
],
|
||||
defaultRules: [
|
||||
{
|
||||
component: 'Panel',
|
||||
directives: {
|
||||
background: '--fg'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,5 +6,14 @@ export default {
|
|||
'Link',
|
||||
'Icon',
|
||||
'Button'
|
||||
],
|
||||
defaultRules: [
|
||||
{
|
||||
component: 'PanelHeader',
|
||||
directives: {
|
||||
background: '--fg'
|
||||
// opacity: 0.9
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,5 +4,16 @@ export default {
|
|||
outOfTreeSelector: '.underlay',
|
||||
validInnerComponents: [
|
||||
'Panel'
|
||||
],
|
||||
defaultRules: [
|
||||
{
|
||||
component: 'Underlay',
|
||||
// variant: 'normal',
|
||||
// state: 'normal'
|
||||
directives: {
|
||||
background: '#000000',
|
||||
opacity: 0.2
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue