Closed edgarfgp closed 2 years ago
This PR Adds initial support for #10 . This add a v1 like way of defining styles.
The original idea was to have a dedicated widgets like LabelStyle(), but for this there are some changes required on how Fabulous handles that.
I suggest we support both :
style(myStyle) This PR .style( LabelStyle() .textColor )
style(myStyle)
.style( LabelStyle() .textColor )
Happy to try and and achieve the second one with some assistance 😀
Nice work! Regarding support for both XF.Style and style widgets, I want to keep Fabulous the easiest to use possible. We should avoid adding too many ways of doing the same thing.
XF.Style
Yeah Agreed
This PR Adds initial support for #10 . This add a v1 like way of defining styles.
The original idea was to have a dedicated widgets like LabelStyle(), but for this there are some changes required on how Fabulous handles that.
I suggest we support both :
style(myStyle)
This PR.style( LabelStyle() .textColor )
Happy to try and and achieve the second one with some assistance 😀