You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Style Sheet is composed of a selector(type, stamps, and combinaison between them), a set of properties (backgroud, border, animation, ...) and values for the properties.
Currently the properties are defined in the method: ToStyleSheet class >> #defaultWritablePropertyList.
But it would make more sens if the Toplo Widget contains their own stylable properties.
This properties could be the standard API of the Widget.
For example, we have the property (ToFeatureProperty new name: #innerImage)., this property only makes sens on a Widget with a #innerImage method.
Why do we need the #defaultWritablePropertyList ?
The text was updated successfully, but these errors were encountered:
Why do we need at the same time ToSkinEventAction and ToPropertyWriter to modify the properties of an object when we could only use ToSkinEventAction that are way simplier than ToPropertyWriter ?
Answer: If two styleRules want to change the same property, ToStyleSheet will only apply the last installed one. Therefor we need a system to identify the properties, and it is difficult to identify the property if it is use directly in a block.
Interesting questions! the need for ToStyleSheet class >> #defaultWritablePropertyList is not clearly answered. @Nyan11 it would be cool to add your answer in the toplo book
By default, only the last writter per editable property and look event is installed for a given graphic element. You can force a rule to be applied using the supplements variable.
Hello,
A Style Sheet is composed of a selector(type, stamps, and combinaison between them), a set of properties (backgroud, border, animation, ...) and values for the properties.
Currently the properties are defined in the method:
ToStyleSheet class >> #defaultWritablePropertyList
.But it would make more sens if the Toplo Widget contains their own stylable properties.
This properties could be the standard API of the Widget.
For example, we have the property
(ToFeatureProperty new name: #innerImage).
, this property only makes sens on a Widget with a#innerImage
method.Why do we need the
#defaultWritablePropertyList
?The text was updated successfully, but these errors were encountered: