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§
- Alpha
Map - 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
- Corner
Radii - Corner radii variables for the Cosmic theme
- Cosmic
Palette Inner - The palette for Cosmic Theme, from which all color properties are derived
- Font
- A font.
- Font
Config - 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
- Theme
Builder - Helper for building customized themes
- Theme
Mode - The config for cosmic theme dark / light settings
Enums§
- Blur
Strength - Actual blur radius is decided by cosmic-comp, but this represents the strength of the blur effect.
- Cosmic
Palette - Palette type
- Density
- Density options for the Cosmic theme
- Font
Stretch - The width of some text.
- Font
Style - The style of some text.
- Font
Weight - 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
ThemeBuilderconfig - 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§
- Layered
Theme - Trait for layered themes