Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need some way of adding unique styling for custom Widgets to Theme. #506

Closed
mitchmindtree opened this issue Jul 12, 2015 · 0 comments
Closed
Assignees

Comments

@mitchmindtree
Copy link
Contributor

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).

@mitchmindtree mitchmindtree self-assigned this Nov 15, 2015
mitchmindtree added a commit to mitchmindtree/conrod that referenced this issue Nov 15, 2015
…gets. Closes PistonDevelopers#506. Add Sizeable methods for setting a widget's dimensions as the size of some other widget. Made a start on a TitleBar widget.
mitchmindtree added a commit to mitchmindtree/conrod that referenced this issue Dec 8, 2015
…gets. Closes PistonDevelopers#506. Add Sizeable methods for setting a widget's dimensions as the size of some other widget. Made a start on a TitleBar widget.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant