klyn.gui.windows.Widget.applyThemeMetrics
method
public applyThemeMetrics(fontPixelSize as Int, paddingLeft as Int, paddingTop as Int, paddingRight as Int, paddingBottom as Int) as Void:
Description

Applies theme-derived metrics that are specific to this widget type.

ThemeManager invokes this hook after applying the common margin and container padding. The base implementation intentionally does nothing; text controls and custom widgets can use it to update preferred sizes without forcing the theme engine to depend on every concrete widget.

Parameters
ParameterDescription
fontPixelSizeResolved theme font size in pixels.
paddingLeftResolved left padding, or -1 when unspecified.
paddingTopResolved top padding, or -1 when unspecified.
paddingRightResolved right padding, or -1 when unspecified.
paddingBottomResolved bottom padding, or -1 when unspecified.
Example
widget.applyThemeMetrics(13, 8, 6, 8, 6)