pub type CosmicTheme = Theme;Aliased Type§
pub struct CosmicTheme {Show 32 fields
pub name: String,
pub button: Component,
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 list_button: Component,
pub text_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 frosted: BlurStrength,
pub frosted_windows: bool,
pub frosted_system_interface: bool,
pub frosted_panel: bool,
pub frosted_applets: bool,
pub alpha_map: AlphaMap,
pub shade: Alpha<Rgb, f32>,
pub accent_text: Option<Alpha<Rgb, f32>>,
pub control_tint: Option<Rgb>,
pub text_tint: Option<Rgb>,
/* private fields */
}Fields§
§name: Stringname of the theme
button component styling
accent: Componentaccent element colors
success: Componentsuggested element colors
destructive: Componentdestructive element colors
warning: Componentwarning 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
list button element colors
text button element colors
palette: CosmicPaletteInnerpalette
spacing: Spacingspacing
corner_radii: CornerRadiicorner radii
is_dark: boolis dark
is_high_contrast: boolis high contrast
gaps: (u32, u32)cosmic-comp window gaps size (outer, inner)
active_hint: u32cosmic-comp active hint window outline width
window_hint: Option<Rgb>cosmic-comp custom window hint color
frosted: BlurStrengthenables blurred transparency
frosted_windows: boolfrosted windows
frosted_system_interface: boolfrosted system interface
frosted_panel: boolfrosted panel
frosted_applets: boolfrosted applet popups
alpha_map: AlphaMapalpha map
shade: Alpha<Rgb, f32>shade color for dialogs
accent_text: Option<Alpha<Rgb, f32>>accent text colors If None, accent base color is the accent text color.
control_tint: Option<Rgb>control tint color
text_tint: Option<Rgb>text tint color