Some of my custom widgets have appearance attributes that can be set in the parameters dictionary (simple things like color and if the corners should be rounded). It might be interesting if I could create "named styles" that could be applied to these widgets (and to ui-core widgets eventually), then I could say "when this happens, that widget should go red".
A concept of style could also be used to finally eliminate bevel_button (note that this might not be how style should be represented...):
- button_beveled -> button( style: beveled, ... )
- checkbox_beveled -> checkbox( style: beveled, ... )
- radio_button_beveled -> radio_button( style: beveled, ... )
- popup_beveled -> popup( style: beveled, ... )
Semantics / Rationale
What is the behavior of the widget? What data structure is it intended to model, or what rationale is there for needing it?
What are the fundamental requirements this widget must meet in order to solve the problem for which it was created?
What is the programming interface to the widget?
What other issues will need consideration?
What additional code must be written to support this widget? What platform implementations / APIs can be leveraged when implementing this widget?