Skip to content

theme.hpp

file src/app/theme/theme.hpp · Applications

The Theme singleton that applies the night-bridge or daylight look, and the colour tables of both looks.

Source src/app/theme/theme.hpp

Theme::apply installs the Fusion style, a palette and a style sheet generated from a Colors table; widgets that paint themselves read the same table through Theme::colors and repaint on Theme::changed. The operator's choice is stored under the setting key appearance/theme as the text of to_string.

See also

  • docs/reference/desktop-app.md, section "Appearance".

Namespaces

Namespace Description
nmeasim::app::theme The look of the desktop application: the Theme singleton with its night-bridge and daylight looks and the option to follow the desktop, and the code-painted icons.

Types

Type Description
Colors Every colour of one look, by role.
Theme Applies the looks to the application and tells custom-painted widgets when they change.

Namespace members

Declared or defined in this file and documented on the page of their namespace.

Member Description
nmeasim::app::theme::Mode What the operator chose under View → Theme.
nmeasim::app::theme::to_string Returns the name under which a mode is stored in the preferences.
nmeasim::app::theme::mode_from_string Parses a mode name stored in the preferences.
nmeasim::app::theme::colors_for Returns the colour table of a look.
nmeasim::app::theme::style_sheet Generates the application style sheet of a look from its colours.