Skip to content

Theme

app.ui.qt.shared.theme

View source code

Application-wide Qt themes and semantic color tokens.

apply_application_theme(application: QApplication, theme: str) -> None

Apply the selected system, light, or dark palette and widget styling.

PARAMETER DESCRIPTION
application

Running Qt application whose palette and stylesheet are updated.

TYPE: QApplication

theme

Theme identifier. Unsupported identifiers use the system theme.

TYPE: str

Side Effects

Updates the application palette and stylesheet, refreshing all widgets.