S or /

SourceClass StyleModifier

from egui import StyleModifier
class StyleModifier:

Utility to modify a Style in some way. Constructed via StyleModifier.from from a Fn(Style) or a Style.

Methods§

Sourcedef apply(self, /, style: Style) -> None§

Apply the modification to the given Style. Usually used with Ui.style_mut.

@staticmethod def default() -> StyleModifier§