Module theme

Source
Expand description

Contains the Theme type and its widget stylesheet implementations.

Re-exports§

pub use style::*;

Modules§

style
Stylesheet implements for crate::Theme

Structs§

COSMIC_DARK
COSMIC_HC_DARK
COSMIC_HC_LIGHT
COSMIC_LIGHT
TRANSPARENT_COMPONENT
Theme

Enums§

ThemeType

Functions§

active
Currently-defined theme.
active_type
Currently-defined theme type.
is_dark
Whether the active theme has a dark preference.
is_high_contrast
Whether the active theme is high contrast.
spacing
Preferred interface spacing parameters defined by the active theme.
subscription
Watches for changes to the system’s theme preference.
system_dark
system_light
system_preference
Loads the preferred system theme from cosmic-config.

Type Aliases§

CosmicColor
CosmicComponent
CosmicTheme