Apply a style to all your ui.Views
I've come up with a way to create one .pyui file that all other .pyui files use to set thier style. This is a very early design, please feel free to add to it or offer suggestions. This would allow you to have several designs and switch between them at runtime.
I'm not convinced that this is the best way to go about it so if any of you have another trick, please share it!
@cclauss Thanks for the pulls. Do you feel that this is a decent way to approach styling ui.Views?
ccc last edited by
Yes, I really like it. I do agree with @jsbain comments on defaults because I see that as a rapid way to change all buttons, etc. in a view without monkeying with subview names.
Style_view might be the wrong name for that parameter. Perhaps theme_view or template_view. I would encourage others to try uiStyle out and provide feedback because it is a great idea.
@ccc Glad it's useful! Any thank you for the pulls. a default sounds good. I'd say just name the control in the style/theme view by its name ex. label, button etc. Then if the ui that you are tying to style does not have a specific .name then use the default.