style

class charmy.styles.style.DEBUG_FLAGS

基类:object

FILL_VARS_DEBUG_OUTPUT: bool = False
class charmy.styles.style.StateStyle

基类:object

class charmy.styles.style.StyleSheet

基类:object

charmy.styles.style.fill_vars(style_value: _typing.Any, theme: _typing.Optional[cm.styles.theme.Theme] = None, window: _typing.Optional[cm.window.WindowEntity | cm.widgets.Container] = None, widget: _typing.Optional[cm.Widget] = None) _typing.Any

To replace vars in a style value.

参数:
  • style_value -- The style value containing the var

  • theme -- Theme currently used

  • window -- Current window

  • widget -- Current widget