Skip to main content

Crate cosmic_theme

Crate cosmic_theme 

Expand description

Cosmic theme library.

Provides utilities for creating custom cosmic themes.

Modules§

color
Color representation and serde helpers for the Cosmic theme
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§

AlphaMap
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
Font
A font.
FontConfig
Describes a font family and its style used by the theme.
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§

BlurStrength
Actual blur radius is decided by cosmic-comp, but this represents the strength of the blur effect.
CosmicPalette
Palette type
Density
Density options for the Cosmic theme
FontStretch
The width of some text.
FontStyle
The style of some text.
FontWeight
The weight of some text.
Layer
Theme layer type
Roundness
Roundness options for the Cosmic theme

Constants§

DARK_THEME_BUILDER_ID
ID for the current dark ThemeBuilder config
DARK_THEME_ID
ID for the current dark Theme config
DEFAULT_FONT_FAMILY
The default interface font family used by the theme.
DEFAULT_ICON_THEME
Default icon theme used when none is configured.
DEFAULT_MONOSPACE_FONT_FAMILY
The default monospace font family used by the theme.
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

Statics§

DARK_PALETTE
built-in dark palette
LIGHT_PALETTE
built-in light palette

Traits§

LayeredTheme
Trait for layered themes