Crate cosmic_theme

Source
Expand description

Cosmic theme library.

Provides utilities for creating custom cosmic themes.

Modules§

composite
composite colors in srgb
palette
A library that makes linear color calculations and conversion easy and accessible for anyone. It uses the type system to enforce correctness and to avoid mistakes, such as mixing incompatible color types.
steps
get color steps

Structs§

Component
The colors for a widget of the Cosmic theme
Container
Theme Container colors of a theme, can be a theme background container, primary container, or secondary container
CornerRadii
Corner radii variables for the Cosmic theme
CosmicPaletteInner
The palette for Cosmic Theme, from which all color properties are derived
DARK_PALETTE
built in dark palette
LIGHT_PALETTE
built in light palette
Spacing
Spacing variables for the Cosmic theme
Theme
Cosmic Theme data structure with all colors and its name
ThemeBuilder
Helper for building customized themes
ThemeMode
The config for cosmic theme dark / light settings

Enums§

CosmicPalette
Palette type
Density
Density options for the Cosmic theme
Layer
Theme layer type

Constants§

DARK_THEME_BUILDER_ID
ID for the current dark ThemeBuilder config
DARK_THEME_ID
ID for the current dark Theme config
LIGHT_THEME_BUILDER_ID
ID for the current light `ThemeBuilder`` config
LIGHT_THEME_ID
ID for the current light Theme config
NAME
name of cosmic theme
THEME_MODE_ID
ID for the ThemeMode config

Traits§

LayeredTheme
Trait for layered themes