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
I was thinking we could add a HashMap<&'static, Box<Any + Encodable + Decodable>> (or maybe AnyMap) to the Theme, where &'static is the Widget's unique_kind and the boxed data is the styling, however I'm unsure if it is possible to serialise dynamic data like that.
For now the internal widgets just have their styling hard coded into the struct (this is of course not possible for custom widgets).
The text was updated successfully, but these errors were encountered:
…gets. ClosesPistonDevelopers#506. Add Sizeable methods for setting a widget's dimensions as the size of some other widget. Made a start on a TitleBar widget.
…gets. ClosesPistonDevelopers#506. Add Sizeable methods for setting a widget's dimensions as the size of some other widget. Made a start on a TitleBar widget.
I was thinking we could add a
HashMap<&'static, Box<Any + Encodable + Decodable>>
(or maybe AnyMap) to theTheme
, where&'static
is theWidget
'sunique_kind
and the boxed data is the styling, however I'm unsure if it is possible to serialise dynamic data like that.For now the internal widgets just have their styling hard coded into the struct (this is of course not possible for custom widgets).
The text was updated successfully, but these errors were encountered: