Skip to content

styler

Application-wide dark theme using BRMS design tokens.

Classes:

  • BRMSStyler

    Singleton that manages the application-wide dark theme.

BRMSStyler

BRMSStyler()

Bases: QObject

Singleton that manages the application-wide dark theme.

Methods:

  • apply_style

    Apply the dark theme to the application.

  • get_stylesheet

    Return the global dark-theme stylesheet.

  • instance

    Retrieve the singleton instance.

  • set_tick_colors

    Toggle green/red value-change coloring across statements, bank book, and dashboard.

  • style_axes

    Apply dark theme to a matplotlib Axes (call at init and on style_changed).

  • style_figure

    Apply dark theme to a matplotlib Figure.

  • style_legend

    Create a dark-themed legend on the given axes. Returns the Legend object.

apply_style

apply_style() -> None

Apply the dark theme to the application.

get_stylesheet

get_stylesheet() -> str

Return the global dark-theme stylesheet.

instance classmethod

instance() -> BRMSStyler

Retrieve the singleton instance.

set_tick_colors

set_tick_colors(enabled: bool) -> None

Toggle green/red value-change coloring across statements, bank book, and dashboard.

style_axes

style_axes(
    ax: Axes, title: str = "", *, show_grid: bool = True
) -> None

Apply dark theme to a matplotlib Axes (call at init and on style_changed).

style_figure

style_figure(fig: Figure) -> None

Apply dark theme to a matplotlib Figure.

style_legend

style_legend(ax: Axes, **kwargs: object) -> object

Create a dark-themed legend on the given axes. Returns the Legend object.