StyleTree calls [WidgetBase.Style] on every widget in tree underneath and including this widget.
()
| 146 | // StyleTree calls [WidgetBase.Style] on every widget in tree |
| 147 | // underneath and including this widget. |
| 148 | func (wb *WidgetBase) StyleTree() { |
| 149 | wb.WidgetWalkDown(func(cw Widget, cwb *WidgetBase) bool { |
| 150 | cw.Style() |
| 151 | return tree.Continue |
| 152 | }) |
| 153 | } |
| 154 | |
| 155 | // Restyle ensures that the styling of the widget and all of its children |
| 156 | // is updated and rendered by calling [WidgetBase.StyleTree] and |