How to apply a global style to a parent widget such that all its nodes will inherit that style #1858
-
Hello
Here, As a workaround I can apply a style globally with:
But it uses |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There isn't a "cascading" aspect to the implementation of Toga's Pack style engine. The closest you'll get is to either apply the same style to every widget (in the style you've done), or to create a single style definition, and apply that definition to every object:
A full "Cascading" stylesheet isn't something we're likely to add to Pack, as we're deliberately trying to keep Pack simple. However, it will be required by Colosseum, which aims to be a full CSS3 implementation. Colosseum isn't sufficiently mature to be used in practice; but it's part of the "long term" picture for BeeWare. |
Beta Was this translation helpful? Give feedback.
There isn't a "cascading" aspect to the implementation of Toga's Pack style engine. The closest you'll get is to either apply the same style to every widget (in the style you've done), or to create a single style definition, and apply that definition to every object:
A full "Cascading" stylesheet isn't something we're likely to add to Pack, as we're deliberately trying to keep Pack simple. However, it will be required by Colosseum, which aims to be a full CSS3 implementation. Colosseum isn't sufficiently mature to be used in practice; but it's part of the "long term" picture for BeeW…