Widget.getComputedStyle

Gets the computed style properties from the visual theme.

You should use this in your paint and layout functions instead of the direct properties on the widget if you want to be style aware. (But when setting defaults in your classes, overriding is the right thing to do. Override to set defaults, but then read out of getComputedStyle.)

class Widget
final
getComputedStyle
()

Meta

History

Added May 8, 2021