Type Alias cosmic::theme::CosmicTheme
source · pub type CosmicTheme = Theme;
Aliased Type§
struct CosmicTheme {Show 26 fields
pub name: String,
pub background: Container,
pub primary: Container,
pub secondary: Container,
pub accent: Component,
pub success: Component,
pub destructive: Component,
pub warning: Component,
pub accent_button: Component,
pub success_button: Component,
pub destructive_button: Component,
pub warning_button: Component,
pub icon_button: Component,
pub link_button: Component,
pub text_button: Component,
pub button: Component,
pub palette: CosmicPaletteInner,
pub spacing: Spacing,
pub corner_radii: CornerRadii,
pub is_dark: bool,
pub is_high_contrast: bool,
pub gaps: (u32, u32),
pub active_hint: u32,
pub window_hint: Option<Rgb>,
pub is_frosted: bool,
pub shade: Alpha<Rgb, f32>,
}
Fields§
§name: String
name of the theme
background: Container
background element colors
primary: Container
primary element colors
secondary: Container
secondary element colors
accent: Component
accent element colors
success: Component
suggested element colors
destructive: Component
destructive element colors
warning: Component
warning element colors
accent button element colors
suggested button element colors
destructive button element colors
warning button element colors
icon button element colors
link button element colors
text button element colors
button component styling
palette: CosmicPaletteInner
palette
spacing: Spacing
spacing
corner_radii: CornerRadii
corner radii
is_dark: bool
is dark
is_high_contrast: bool
is high contrast
gaps: (u32, u32)
cosmic-comp window gaps size (outer, inner)
active_hint: u32
cosmic-comp active hint window outline width
window_hint: Option<Rgb>
cosmic-comp custom window hint color
is_frosted: bool
enables blurred transparency
shade: Alpha<Rgb, f32>
shade color for dialogs