libcosmic/cosmic/cosmic_theme/struct.Theme.html
2026-04-18 20:11:25 +00:00

435 lines
No EOL
213 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Cosmic Theme data structure with all colors and its name"><title>Theme in cosmic::cosmic_theme - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Theme</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.accent" title="accent">accent</a></li><li><a href="#structfield.accent_button" title="accent_button">accent_button</a></li><li><a href="#structfield.accent_text" title="accent_text">accent_text</a></li><li><a href="#structfield.active_hint" title="active_hint">active_hint</a></li><li><a href="#structfield.background" title="background">background</a></li><li><a href="#structfield.button" title="button">button</a></li><li><a href="#structfield.control_tint" title="control_tint">control_tint</a></li><li><a href="#structfield.corner_radii" title="corner_radii">corner_radii</a></li><li><a href="#structfield.destructive" title="destructive">destructive</a></li><li><a href="#structfield.destructive_button" title="destructive_button">destructive_button</a></li><li><a href="#structfield.gaps" title="gaps">gaps</a></li><li><a href="#structfield.icon_button" title="icon_button">icon_button</a></li><li><a href="#structfield.is_dark" title="is_dark">is_dark</a></li><li><a href="#structfield.is_frosted" title="is_frosted">is_frosted</a></li><li><a href="#structfield.is_high_contrast" title="is_high_contrast">is_high_contrast</a></li><li><a href="#structfield.link_button" title="link_button">link_button</a></li><li><a href="#structfield.name" title="name">name</a></li><li><a href="#structfield.palette" title="palette">palette</a></li><li><a href="#structfield.primary" title="primary">primary</a></li><li><a href="#structfield.secondary" title="secondary">secondary</a></li><li><a href="#structfield.shade" title="shade">shade</a></li><li><a href="#structfield.spacing" title="spacing">spacing</a></li><li><a href="#structfield.success" title="success">success</a></li><li><a href="#structfield.success_button" title="success_button">success_button</a></li><li><a href="#structfield.text_button" title="text_button">text_button</a></li><li><a href="#structfield.text_tint" title="text_tint">text_tint</a></li><li><a href="#structfield.warning" title="warning">warning</a></li><li><a href="#structfield.warning_button" title="warning_button">warning_button</a></li><li><a href="#structfield.window_hint" title="window_hint">window_hint</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.accent_color" title="accent_color">accent_color</a></li><li><a href="#method.accent_text_color" title="accent_text_color">accent_text_color</a></li><li><a href="#method.apply_exports" title="apply_exports">apply_exports</a></li><li><a href="#method.apply_gtk" title="apply_gtk">apply_gtk</a></li><li><a href="#method.apply_qt" title="apply_qt">apply_qt</a></li><li><a href="#method.apply_qt56ct" title="apply_qt56ct">apply_qt56ct</a></li><li><a href="#method.apply_vs_code" title="apply_vs_code">apply_vs_code</a></li><li><a href="#method.as_gtk4" title="as_gtk4">as_gtk4</a></li><li><a href="#method.as_kcolorscheme" title="as_kcolorscheme">as_kcolorscheme</a></li><li><a href="#method.as_qpalette" title="as_qpalette">as_qpalette</a></li><li><a href="#method.bg_color" title="bg_color">bg_color</a></li><li><a href="#method.bg_component_color" title="bg_component_color">bg_component_color</a></li><li><a href="#method.bg_component_divider" title="bg_component_divider">bg_component_divider</a></li><li><a href="#method.bg_divider" title="bg_divider">bg_divider</a></li><li><a href="#method.button_bg_color" title="button_bg_color">button_bg_color</a></li><li><a href="#method.button_color" title="button_color">button_color</a></li><li><a href="#method.button_divider" title="button_divider">button_divider</a></li><li><a href="#method.control_0" title="control_0">control_0</a></li><li><a href="#method.control_1" title="control_1">control_1</a></li><li><a href="#method.control_2" title="control_2">control_2</a></li><li><a href="#method.control_3" title="control_3">control_3</a></li><li><a href="#method.control_4" title="control_4">control_4</a></li><li><a href="#method.control_5" title="control_5">control_5</a></li><li><a href="#method.control_6" title="control_6">control_6</a></li><li><a href="#method.control_7" title="control_7">control_7</a></li><li><a href="#method.control_8" title="control_8">control_8</a></li><li><a href="#method.control_9" title="control_9">control_9</a></li><li><a href="#method.control_10" title="control_10">control_10</a></li><li><a href="#method.dark_config" title="dark_config">dark_config</a></li><li><a href="#method.dark_default" title="dark_default">dark_default</a></li><li><a href="#method.destructive_color" title="destructive_color">destructive_color</a></li><li><a href="#method.destructive_text_color" title="destructive_text_color">destructive_text_color</a></li><li><a href="#method.get_active" title="get_active">get_active</a></li><li><a href="#method.gtk_prefer_colorscheme" title="gtk_prefer_colorscheme">gtk_prefer_colorscheme</a></li><li><a href="#method.high_contrast_dark_default" title="high_contrast_dark_default">high_contrast_dark_default</a></li><li><a href="#method.high_contrast_light_default" title="high_contrast_light_default">high_contrast_light_default</a></li><li><a href="#method.id" title="id">id</a></li><li><a href="#method.light_config" title="light_config">light_config</a></li><li><a href="#method.light_default" title="light_default">light_default</a></li><li><a href="#method.on_accent_color" title="on_accent_color">on_accent_color</a></li><li><a href="#method.on_bg_color" title="on_bg_color">on_bg_color</a></li><li><a href="#method.on_bg_component_color" title="on_bg_component_color">on_bg_component_color</a></li><li><a href="#method.on_destructive_color" title="on_destructive_color">on_destructive_color</a></li><li><a href="#method.on_primary_component_color" title="on_primary_component_color">on_primary_component_color</a></li><li><a href="#method.on_primary_container_color" title="on_primary_container_color">on_primary_container_color</a></li><li><a href="#method.on_secondary_component_color" title="on_secondary_component_color">on_secondary_component_color</a></li><li><a href="#method.on_secondary_container_color" title="on_secondary_container_color">on_secondary_container_color</a></li><li><a href="#method.on_success_color" title="on_success_color">on_success_color</a></li><li><a href="#method.on_warning_color" title="on_warning_color">on_warning_color</a></li><li><a href="#method.preferred_theme" title="preferred_theme">preferred_theme</a></li><li><a href="#method.primary_component_color" title="primary_component_color">primary_component_color</a></li><li><a href="#method.primary_component_divider" title="primary_component_divider">primary_component_divider</a></li><li><a href="#method.primary_container_color" title="primary_container_color">primary_container_color</a></li><li><a href="#method.primary_container_divider" title="primary_container_divider">primary_container_divider</a></li><li><a href="#method.radius_0" title="radius_0">radius_0</a></li><li><a href="#method.radius_l" title="radius_l">radius_l</a></li><li><a href="#method.radius_m" title="radius_m">radius_m</a></li><li><a href="#method.radius_s" title="radius_s">radius_s</a></li><li><a href="#method.radius_xl" title="radius_xl">radius_xl</a></li><li><a href="#method.radius_xs" title="radius_xs">radius_xs</a></li><li><a href="#method.reset_exports" title="reset_exports">reset_exports</a></li><li><a href="#method.reset_gtk" title="reset_gtk">reset_gtk</a></li><li><a href="#method.reset_qt" title="reset_qt">reset_qt</a></li><li><a href="#method.reset_qt56ct" title="reset_qt56ct">reset_qt56ct</a></li><li><a href="#method.reset_vs_code" title="reset_vs_code">reset_vs_code</a></li><li><a href="#method.secondary_component_color" title="secondary_component_color">secondary_component_color</a></li><li><a href="#method.secondary_container_color" title="secondary_container_color">secondary_container_color</a></li><li><a href="#method.secondary_container_divider" title="secondary_container_divider">secondary_container_divider</a></li><li><a href="#method.set_accent" title="set_accent">set_accent</a></li><li><a href="#method.set_accent_button" title="set_accent_button">set_accent_button</a></li><li><a href="#method.set_accent_text" title="set_accent_text">set_accent_text</a></li><li><a href="#method.set_active_hint" title="set_active_hint">set_active_hint</a></li><li><a href="#method.set_background" title="set_background">set_background</a></li><li><a href="#method.set_button" title="set_button">set_button</a></li><li><a href="#method.set_control_tint" title="set_control_tint">set_control_tint</a></li><li><a href="#method.set_corner_radii" title="set_corner_radii">set_corner_radii</a></li><li><a href="#method.set_destructive" title="set_destructive">set_destructive</a></li><li><a href="#method.set_destructive_button" title="set_destructive_button">set_destructive_button</a></li><li><a href="#method.set_gaps" title="set_gaps">set_gaps</a></li><li><a href="#method.set_icon_button" title="set_icon_button">set_icon_button</a></li><li><a href="#method.set_is_dark" title="set_is_dark">set_is_dark</a></li><li><a href="#method.set_is_frosted" title="set_is_frosted">set_is_frosted</a></li><li><a href="#method.set_is_high_contrast" title="set_is_high_contrast">set_is_high_contrast</a></li><li><a href="#method.set_link_button" title="set_link_button">set_link_button</a></li><li><a href="#method.set_name" title="set_name">set_name</a></li><li><a href="#method.set_palette" title="set_palette">set_palette</a></li><li><a href="#method.set_primary" title="set_primary">set_primary</a></li><li><a href="#method.set_secondary" title="set_secondary">set_secondary</a></li><li><a href="#method.set_shade" title="set_shade">set_shade</a></li><li><a href="#method.set_spacing" title="set_spacing">set_spacing</a></li><li><a href="#method.set_success" title="set_success">set_success</a></li><li><a href="#method.set_success_button" title="set_success_button">set_success_button</a></li><li><a href="#method.set_text_button" title="set_text_button">set_text_button</a></li><li><a href="#method.set_text_tint" title="set_text_tint">set_text_tint</a></li><li><a href="#method.set_warning" title="set_warning">set_warning</a></li><li><a href="#method.set_warning_button" title="set_warning_button">set_warning_button</a></li><li><a href="#method.set_window_hint" title="set_window_hint">set_window_hint</a></li><li><a href="#method.shade_color" title="shade_color">shade_color</a></li><li><a href="#method.small_widget_divider" title="small_widget_divider">small_widget_divider</a></li><li><a href="#method.space_l" title="space_l">space_l</a></li><li><a href="#method.space_m" title="space_m">space_m</a></li><li><a href="#method.space_none" title="space_none">space_none</a></li><li><a href="#method.space_s" title="space_s">space_s</a></li><li><a href="#method.space_xl" title="space_xl">space_xl</a></li><li><a href="#method.space_xs" title="space_xs">space_xs</a></li><li><a href="#method.space_xxl" title="space_xxl">space_xxl</a></li><li><a href="#method.space_xxs" title="space_xxs">space_xxs</a></li><li><a href="#method.space_xxxl" title="space_xxxl">space_xxxl</a></li><li><a href="#method.space_xxxs" title="space_xxxs">space_xxxs</a></li><li><a href="#method.success_color" title="success_color">success_color</a></li><li><a href="#method.success_text_color" title="success_text_color">success_text_color</a></li><li><a href="#method.to_high_contrast" title="to_high_contrast">to_high_contrast</a></li><li><a href="#method.warning_color" title="warning_color">warning_color</a></li><li><a href="#method.warning_text_color" title="warning_text_color">warning_text_color</a></li><li><a href="#method.window_header_bg" title="window_header_bg">window_header_bg</a></li><li><a href="#method.with_accent" title="with_accent">with_accent</a></li><li><a href="#method.write_exports" title="write_exports">write_exports</a></li><li><a href="#method.write_gtk4" title="write_gtk4">write_gtk4</a></li><li><a href="#method.write_qt" title="write_qt">write_qt</a></li><li><a href="#method.write_qt56ct" title="write_qt56ct">write_qt56ct</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Theme" title="Clone">Clone</a></li><li><a href="#impl-CosmicConfigEntry-for-Theme" title="CosmicConfigEntry">CosmicConfigEntry</a></li><li><a href="#impl-Debug-for-Theme" title="Debug">Debug</a></li><li><a href="#impl-Default-for-Theme" title="Default">Default</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-Theme" title="Deserialize&#60;&#39;de&#62;">Deserialize&#60;&#39;de&#62;</a></li><li><a href="#impl-From%3CCosmicPalette%3E-for-Theme" title="From&#60;CosmicPalette&#62;">From&#60;CosmicPalette&#62;</a></li><li><a href="#impl-PartialEq-for-Theme" title="PartialEq">PartialEq</a></li><li><a href="#impl-Serialize-for-Theme" title="Serialize">Serialize</a></li><li><a href="#impl-StructuralPartialEq-for-Theme" title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Theme" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Theme" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Theme" title="Send">Send</a></li><li><a href="#impl-Sync-for-Theme" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Theme" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Theme" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S" title="AdaptInto&#60;D, Swp, Dwp, T&#62;">AdaptInto&#60;D, Swp, Dwp, T&#62;</a></li><li><a href="#impl-Also-for-T" title="Also">Also</a></li><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-AnyEq-for-T" title="AnyEq">AnyEq</a></li><li><a href="#impl-Apply%3CRes%3E-for-T" title="Apply&#60;Res&#62;">Apply&#60;Res&#62;</a></li><li><a href="#impl-ArraysFrom%3CC%3E-for-T" title="ArraysFrom&#60;C&#62;">ArraysFrom&#60;C&#62;</a></li><li><a href="#impl-ArraysInto%3CC%3E-for-T" title="ArraysInto&#60;C&#62;">ArraysInto&#60;C&#62;</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U" title="Cam16IntoUnclamped&#60;WpParam, T&#62;">Cam16IntoUnclamped&#60;WpParam, T&#62;</a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-ComponentsFrom%3CC%3E-for-T" title="ComponentsFrom&#60;C&#62;">ComponentsFrom&#60;C&#62;</a></li><li><a href="#impl-DeserializeOwned-for-T" title="DeserializeOwned">DeserializeOwned</a></li><li><a href="#impl-Downcast-for-T" title="Downcast">Downcast</a></li><li><a href="#impl-DowncastSync-for-T" title="DowncastSync">DowncastSync</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-FromAngle%3CT%3E-for-T" title="FromAngle&#60;T&#62;">FromAngle&#60;T&#62;</a></li><li><a href="#impl-FromStimulus%3CU%3E-for-T" title="FromStimulus&#60;U&#62;">FromStimulus&#60;U&#62;</a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-IntoAngle%3CU%3E-for-T" title="IntoAngle&#60;U&#62;">IntoAngle&#60;U&#62;</a></li><li><a href="#impl-IntoBoot%3CState,+Message%3E-for-State" title="IntoBoot&#60;State, Message&#62;">IntoBoot&#60;State, Message&#62;</a></li><li><a href="#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U" title="IntoCam16Unclamped&#60;WpParam, T&#62;">IntoCam16Unclamped&#60;WpParam, T&#62;</a></li><li><a href="#impl-IntoColor%3CU%3E-for-T" title="IntoColor&#60;U&#62;">IntoColor&#60;U&#62;</a></li><li><a href="#impl-IntoColorUnclamped%3CU%3E-for-T" title="IntoColorUnclamped&#60;U&#62;">IntoColorUnclamped&#60;U&#62;</a></li><li><a href="#impl-IntoStimulus%3CT%3E-for-T" title="IntoStimulus&#60;T&#62;">IntoStimulus&#60;T&#62;</a></li><li><a href="#impl-MaybeClone-for-T" title="MaybeClone">MaybeClone</a></li><li><a href="#impl-MaybeDebug-for-T" title="MaybeDebug">MaybeDebug</a></li><li><a href="#impl-MaybeSend-for-T" title="MaybeSend">MaybeSend</a></li><li><a href="#impl-MaybeSend-for-T-1" title="MaybeSend">MaybeSend</a></li><li><a href="#impl-MaybeSync-for-T" title="MaybeSync">MaybeSync</a></li><li><a href="#impl-MaybeSync-for-T-1" title="MaybeSync">MaybeSync</a></li><li><a href="#impl-NoneValue-for-T" title="NoneValue">NoneValue</a></li><li><a href="#impl-Same-for-T" title="Same">Same</a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryComponentsInto%3CC%3E-for-T" title="TryComponentsInto&#60;C&#62;">TryComponentsInto&#60;C&#62;</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li><li><a href="#impl-TryIntoColor%3CU%3E-for-T" title="TryIntoColor&#60;U&#62;">TryIntoColor&#60;U&#62;</a></li><li><a href="#impl-UintsFrom%3CC%3E-for-U" title="UintsFrom&#60;C&#62;">UintsFrom&#60;C&#62;</a></li><li><a href="#impl-UintsInto%3CC%3E-for-U" title="UintsInto&#60;C&#62;">UintsInto&#60;C&#62;</a></li><li><a href="#impl-VZip%3CV%3E-for-T" title="VZip&#60;V&#62;">VZip&#60;V&#62;</a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">cosmic</a>::<wbr><a href="index.html">cosmic_theme</a></div><h1>Struct <span class="struct">Theme</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub struct Theme {<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 29 fields</span></summary>
pub name: <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>,
pub background: <a class="struct" href="struct.Container.html" title="struct cosmic::cosmic_theme::Container">Container</a>,
pub primary: <a class="struct" href="struct.Container.html" title="struct cosmic::cosmic_theme::Container">Container</a>,
pub secondary: <a class="struct" href="struct.Container.html" title="struct cosmic::cosmic_theme::Container">Container</a>,
pub accent: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub success: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub destructive: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub warning: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub accent_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub success_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub destructive_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub warning_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub icon_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub link_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub text_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
pub palette: <a class="struct" href="struct.CosmicPaletteInner.html" title="struct cosmic::cosmic_theme::CosmicPaletteInner">CosmicPaletteInner</a>,
pub spacing: <a class="struct" href="struct.Spacing.html" title="struct cosmic::cosmic_theme::Spacing">Spacing</a>,
pub corner_radii: <a class="struct" href="struct.CornerRadii.html" title="struct cosmic::cosmic_theme::CornerRadii">CornerRadii</a>,
pub is_dark: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
pub is_high_contrast: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
pub gaps: (<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>),
pub active_hint: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
pub window_hint: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&gt;,
pub is_frosted: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
pub shade: <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
pub accent_text: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;&gt;,
pub control_tint: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&gt;,
pub text_tint: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&gt;,
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Cosmic Theme data structure with all colors and its name</p>
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.name" class="structfield section-header"><a href="#structfield.name" class="anchor field">§</a><code>name: <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a></code></span><div class="docblock"><p>name of the theme</p>
</div><span id="structfield.background" class="structfield section-header"><a href="#structfield.background" class="anchor field">§</a><code>background: <a class="struct" href="struct.Container.html" title="struct cosmic::cosmic_theme::Container">Container</a></code></span><div class="docblock"><p>background element colors</p>
</div><span id="structfield.primary" class="structfield section-header"><a href="#structfield.primary" class="anchor field">§</a><code>primary: <a class="struct" href="struct.Container.html" title="struct cosmic::cosmic_theme::Container">Container</a></code></span><div class="docblock"><p>primary element colors</p>
</div><span id="structfield.secondary" class="structfield section-header"><a href="#structfield.secondary" class="anchor field">§</a><code>secondary: <a class="struct" href="struct.Container.html" title="struct cosmic::cosmic_theme::Container">Container</a></code></span><div class="docblock"><p>secondary element colors</p>
</div><span id="structfield.accent" class="structfield section-header"><a href="#structfield.accent" class="anchor field">§</a><code>accent: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>accent element colors</p>
</div><span id="structfield.success" class="structfield section-header"><a href="#structfield.success" class="anchor field">§</a><code>success: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>suggested element colors</p>
</div><span id="structfield.destructive" class="structfield section-header"><a href="#structfield.destructive" class="anchor field">§</a><code>destructive: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>destructive element colors</p>
</div><span id="structfield.warning" class="structfield section-header"><a href="#structfield.warning" class="anchor field">§</a><code>warning: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>warning element colors</p>
</div><span id="structfield.accent_button" class="structfield section-header"><a href="#structfield.accent_button" class="anchor field">§</a><code>accent_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>accent button element colors</p>
</div><span id="structfield.success_button" class="structfield section-header"><a href="#structfield.success_button" class="anchor field">§</a><code>success_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>suggested button element colors</p>
</div><span id="structfield.destructive_button" class="structfield section-header"><a href="#structfield.destructive_button" class="anchor field">§</a><code>destructive_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>destructive button element colors</p>
</div><span id="structfield.warning_button" class="structfield section-header"><a href="#structfield.warning_button" class="anchor field">§</a><code>warning_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>warning button element colors</p>
</div><span id="structfield.icon_button" class="structfield section-header"><a href="#structfield.icon_button" class="anchor field">§</a><code>icon_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>icon button element colors</p>
</div><span id="structfield.link_button" class="structfield section-header"><a href="#structfield.link_button" class="anchor field">§</a><code>link_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>link button element colors</p>
</div><span id="structfield.text_button" class="structfield section-header"><a href="#structfield.text_button" class="anchor field">§</a><code>text_button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>text button element colors</p>
</div><span id="structfield.button" class="structfield section-header"><a href="#structfield.button" class="anchor field">§</a><code>button: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></code></span><div class="docblock"><p>button component styling</p>
</div><span id="structfield.palette" class="structfield section-header"><a href="#structfield.palette" class="anchor field">§</a><code>palette: <a class="struct" href="struct.CosmicPaletteInner.html" title="struct cosmic::cosmic_theme::CosmicPaletteInner">CosmicPaletteInner</a></code></span><div class="docblock"><p>palette</p>
</div><span id="structfield.spacing" class="structfield section-header"><a href="#structfield.spacing" class="anchor field">§</a><code>spacing: <a class="struct" href="struct.Spacing.html" title="struct cosmic::cosmic_theme::Spacing">Spacing</a></code></span><div class="docblock"><p>spacing</p>
</div><span id="structfield.corner_radii" class="structfield section-header"><a href="#structfield.corner_radii" class="anchor field">§</a><code>corner_radii: <a class="struct" href="struct.CornerRadii.html" title="struct cosmic::cosmic_theme::CornerRadii">CornerRadii</a></code></span><div class="docblock"><p>corner radii</p>
</div><span id="structfield.is_dark" class="structfield section-header"><a href="#structfield.is_dark" class="anchor field">§</a><code>is_dark: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><div class="docblock"><p>is dark</p>
</div><span id="structfield.is_high_contrast" class="structfield section-header"><a href="#structfield.is_high_contrast" class="anchor field">§</a><code>is_high_contrast: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><div class="docblock"><p>is high contrast</p>
</div><span id="structfield.gaps" class="structfield section-header"><a href="#structfield.gaps" class="anchor field">§</a><code>gaps: (<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</code></span><div class="docblock"><p>cosmic-comp window gaps size (outer, inner)</p>
</div><span id="structfield.active_hint" class="structfield section-header"><a href="#structfield.active_hint" class="anchor field">§</a><code>active_hint: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>cosmic-comp active hint window outline width</p>
</div><span id="structfield.window_hint" class="structfield section-header"><a href="#structfield.window_hint" class="anchor field">§</a><code>window_hint: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&gt;</code></span><div class="docblock"><p>cosmic-comp custom window hint color</p>
</div><span id="structfield.is_frosted" class="structfield section-header"><a href="#structfield.is_frosted" class="anchor field">§</a><code>is_frosted: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><div class="docblock"><p>enables blurred transparency</p>
</div><span id="structfield.shade" class="structfield section-header"><a href="#structfield.shade" class="anchor field">§</a><code>shade: <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</code></span><div class="docblock"><p>shade color for dialogs</p>
</div><span id="structfield.accent_text" class="structfield section-header"><a href="#structfield.accent_text" class="anchor field">§</a><code>accent_text: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;&gt;</code></span><div class="docblock"><p>accent text colors
If None, accent base color is the accent text color.</p>
</div><span id="structfield.control_tint" class="structfield section-header"><a href="#structfield.control_tint" class="anchor field">§</a><code>control_tint: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&gt;</code></span><div class="docblock"><p>control tint color</p>
</div><span id="structfield.text_tint" class="structfield section-header"><a href="#structfield.text_tint" class="anchor field">§</a><code>text_tint: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&gt;</code></span><div class="docblock"><p>text tint color</p>
</div><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Theme" class="impl"><a href="#impl-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.set_name" class="method"><h4 class="code-header">pub fn <a href="#method.set_name" class="fn">set_name</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.name" title="field cosmic::cosmic_theme::Theme::name"><code>Theme::name</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_background" class="method"><h4 class="code-header">pub fn <a href="#method.set_background" class="fn">set_background</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Container.html" title="struct cosmic::cosmic_theme::Container">Container</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.background" title="field cosmic::cosmic_theme::Theme::background"><code>Theme::background</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_primary" class="method"><h4 class="code-header">pub fn <a href="#method.set_primary" class="fn">set_primary</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Container.html" title="struct cosmic::cosmic_theme::Container">Container</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.primary" title="field cosmic::cosmic_theme::Theme::primary"><code>Theme::primary</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_secondary" class="method"><h4 class="code-header">pub fn <a href="#method.set_secondary" class="fn">set_secondary</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Container.html" title="struct cosmic::cosmic_theme::Container">Container</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.secondary" title="field cosmic::cosmic_theme::Theme::secondary"><code>Theme::secondary</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_accent" class="method"><h4 class="code-header">pub fn <a href="#method.set_accent" class="fn">set_accent</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.accent" title="field cosmic::cosmic_theme::Theme::accent"><code>Theme::accent</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_success" class="method"><h4 class="code-header">pub fn <a href="#method.set_success" class="fn">set_success</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.success" title="field cosmic::cosmic_theme::Theme::success"><code>Theme::success</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_destructive" class="method"><h4 class="code-header">pub fn <a href="#method.set_destructive" class="fn">set_destructive</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.destructive" title="field cosmic::cosmic_theme::Theme::destructive"><code>Theme::destructive</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_warning" class="method"><h4 class="code-header">pub fn <a href="#method.set_warning" class="fn">set_warning</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.warning" title="field cosmic::cosmic_theme::Theme::warning"><code>Theme::warning</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_accent_button" class="method"><h4 class="code-header">pub fn <a href="#method.set_accent_button" class="fn">set_accent_button</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.accent_button" title="field cosmic::cosmic_theme::Theme::accent_button"><code>Theme::accent_button</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_success_button" class="method"><h4 class="code-header">pub fn <a href="#method.set_success_button" class="fn">set_success_button</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.success_button" title="field cosmic::cosmic_theme::Theme::success_button"><code>Theme::success_button</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_destructive_button" class="method"><h4 class="code-header">pub fn <a href="#method.set_destructive_button" class="fn">set_destructive_button</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.destructive_button" title="field cosmic::cosmic_theme::Theme::destructive_button"><code>Theme::destructive_button</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_warning_button" class="method"><h4 class="code-header">pub fn <a href="#method.set_warning_button" class="fn">set_warning_button</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.warning_button" title="field cosmic::cosmic_theme::Theme::warning_button"><code>Theme::warning_button</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_icon_button" class="method"><h4 class="code-header">pub fn <a href="#method.set_icon_button" class="fn">set_icon_button</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.icon_button" title="field cosmic::cosmic_theme::Theme::icon_button"><code>Theme::icon_button</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_link_button" class="method"><h4 class="code-header">pub fn <a href="#method.set_link_button" class="fn">set_link_button</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.link_button" title="field cosmic::cosmic_theme::Theme::link_button"><code>Theme::link_button</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_text_button" class="method"><h4 class="code-header">pub fn <a href="#method.set_text_button" class="fn">set_text_button</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.text_button" title="field cosmic::cosmic_theme::Theme::text_button"><code>Theme::text_button</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_button" class="method"><h4 class="code-header">pub fn <a href="#method.set_button" class="fn">set_button</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.button" title="field cosmic::cosmic_theme::Theme::button"><code>Theme::button</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_palette" class="method"><h4 class="code-header">pub fn <a href="#method.set_palette" class="fn">set_palette</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.CosmicPaletteInner.html" title="struct cosmic::cosmic_theme::CosmicPaletteInner">CosmicPaletteInner</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.palette" title="field cosmic::cosmic_theme::Theme::palette"><code>Theme::palette</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_spacing" class="method"><h4 class="code-header">pub fn <a href="#method.set_spacing" class="fn">set_spacing</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.Spacing.html" title="struct cosmic::cosmic_theme::Spacing">Spacing</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.spacing" title="field cosmic::cosmic_theme::Theme::spacing"><code>Theme::spacing</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_corner_radii" class="method"><h4 class="code-header">pub fn <a href="#method.set_corner_radii" class="fn">set_corner_radii</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="struct.CornerRadii.html" title="struct cosmic::cosmic_theme::CornerRadii">CornerRadii</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.corner_radii" title="field cosmic::cosmic_theme::Theme::corner_radii"><code>Theme::corner_radii</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_is_dark" class="method"><h4 class="code-header">pub fn <a href="#method.set_is_dark" class="fn">set_is_dark</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.is_dark" title="field cosmic::cosmic_theme::Theme::is_dark"><code>Theme::is_dark</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_is_high_contrast" class="method"><h4 class="code-header">pub fn <a href="#method.set_is_high_contrast" class="fn">set_is_high_contrast</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.is_high_contrast" title="field cosmic::cosmic_theme::Theme::is_high_contrast"><code>Theme::is_high_contrast</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_gaps" class="method"><h4 class="code-header">pub fn <a href="#method.set_gaps" class="fn">set_gaps</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: (<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>),
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.gaps" title="field cosmic::cosmic_theme::Theme::gaps"><code>Theme::gaps</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_active_hint" class="method"><h4 class="code-header">pub fn <a href="#method.set_active_hint" class="fn">set_active_hint</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.active_hint" title="field cosmic::cosmic_theme::Theme::active_hint"><code>Theme::active_hint</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_window_hint" class="method"><h4 class="code-header">pub fn <a href="#method.set_window_hint" class="fn">set_window_hint</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.window_hint" title="field cosmic::cosmic_theme::Theme::window_hint"><code>Theme::window_hint</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_is_frosted" class="method"><h4 class="code-header">pub fn <a href="#method.set_is_frosted" class="fn">set_is_frosted</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.is_frosted" title="field cosmic::cosmic_theme::Theme::is_frosted"><code>Theme::is_frosted</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_shade" class="method"><h4 class="code-header">pub fn <a href="#method.set_shade" class="fn">set_shade</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.shade" title="field cosmic::cosmic_theme::Theme::shade"><code>Theme::shade</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_accent_text" class="method"><h4 class="code-header">pub fn <a href="#method.set_accent_text" class="fn">set_accent_text</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.accent_text" title="field cosmic::cosmic_theme::Theme::accent_text"><code>Theme::accent_text</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_control_tint" class="method"><h4 class="code-header">pub fn <a href="#method.set_control_tint" class="fn">set_control_tint</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.control_tint" title="field cosmic::cosmic_theme::Theme::control_tint"><code>Theme::control_tint</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_text_tint" class="method"><h4 class="code-header">pub fn <a href="#method.set_text_tint" class="fn">set_text_tint</a>(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
value: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Sets <a href="struct.Theme.html#structfield.text_tint" title="field cosmic::cosmic_theme::Theme::text_tint"><code>Theme::text_tint</code></a> and writes to <a href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config"><code>cosmic_config::Config</code></a> if changed</p>
<p>Returns <code>Ok(true)</code> when the fields value has changed and was written to disk</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Theme-1" class="impl"><a href="#impl-Theme-1" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.id" class="method"><h4 class="code-header">pub fn <a href="#method.id" class="fn">id</a>() -&gt; &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h4></section></summary><div class="docblock"><p>id of the theme</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.dark_config" class="method"><h4 class="code-header">pub fn <a href="#method.dark_config" class="fn">dark_config</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Get the config for the current dark theme</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.light_config" class="method"><h4 class="code-header">pub fn <a href="#method.light_config" class="fn">light_config</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Get the config for the current light theme</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.light_default" class="method"><h4 class="code-header">pub fn <a href="#method.light_default" class="fn">light_default</a>() -&gt; <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h4></section></summary><div class="docblock"><p>get the built in light theme</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.dark_default" class="method"><h4 class="code-header">pub fn <a href="#method.dark_default" class="fn">dark_default</a>() -&gt; <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h4></section></summary><div class="docblock"><p>get the built in dark theme</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.high_contrast_dark_default" class="method"><h4 class="code-header">pub fn <a href="#method.high_contrast_dark_default" class="fn">high_contrast_dark_default</a>() -&gt; <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h4></section></summary><div class="docblock"><p>get the built in high contrast dark theme</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.high_contrast_light_default" class="method"><h4 class="code-header">pub fn <a href="#method.high_contrast_light_default" class="fn">high_contrast_light_default</a>() -&gt; <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h4></section></summary><div class="docblock"><p>get the built in high contrast light theme</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_high_contrast" class="method"><h4 class="code-header">pub fn <a href="#method.to_high_contrast" class="fn">to_high_contrast</a>(&amp;self) -&gt; <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h4></section></summary><div class="docblock"><p>Convert the theme to a high-contrast variant</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.control_0" class="method"><h4 class="code-header">pub fn <a href="#method.control_0" class="fn">control_0</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get control_0 color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.control_1" class="method"><h4 class="code-header">pub fn <a href="#method.control_1" class="fn">control_1</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get control_1 color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.control_2" class="method"><h4 class="code-header">pub fn <a href="#method.control_2" class="fn">control_2</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get control_2 color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.control_3" class="method"><h4 class="code-header">pub fn <a href="#method.control_3" class="fn">control_3</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get control_3 color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.control_4" class="method"><h4 class="code-header">pub fn <a href="#method.control_4" class="fn">control_4</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get control_3 color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.control_5" class="method"><h4 class="code-header">pub fn <a href="#method.control_5" class="fn">control_5</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get control_3 color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.control_6" class="method"><h4 class="code-header">pub fn <a href="#method.control_6" class="fn">control_6</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get control_3 color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.control_7" class="method"><h4 class="code-header">pub fn <a href="#method.control_7" class="fn">control_7</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get control_3 color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.control_8" class="method"><h4 class="code-header">pub fn <a href="#method.control_8" class="fn">control_8</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get control_3 color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.control_9" class="method"><h4 class="code-header">pub fn <a href="#method.control_9" class="fn">control_9</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get control_3 color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.control_10" class="method"><h4 class="code-header">pub fn <a href="#method.control_10" class="fn">control_10</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get control_3 color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.accent_color" class="method"><h4 class="code-header">pub fn <a href="#method.accent_color" class="fn">accent_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @accent_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.success_color" class="method"><h4 class="code-header">pub fn <a href="#method.success_color" class="fn">success_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @success_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.destructive_color" class="method"><h4 class="code-header">pub fn <a href="#method.destructive_color" class="fn">destructive_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @destructive_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.warning_color" class="method"><h4 class="code-header">pub fn <a href="#method.warning_color" class="fn">warning_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @warning_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.small_widget_divider" class="method"><h4 class="code-header">pub fn <a href="#method.small_widget_divider" class="fn">small_widget_divider</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @small_widget_divider</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.bg_color" class="method"><h4 class="code-header">pub fn <a href="#method.bg_color" class="fn">bg_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @bg_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.bg_component_color" class="method"><h4 class="code-header">pub fn <a href="#method.bg_component_color" class="fn">bg_component_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @bg_component_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.primary_container_color" class="method"><h4 class="code-header">pub fn <a href="#method.primary_container_color" class="fn">primary_container_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @primary_container_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.primary_component_color" class="method"><h4 class="code-header">pub fn <a href="#method.primary_component_color" class="fn">primary_component_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @primary_component_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.secondary_container_color" class="method"><h4 class="code-header">pub fn <a href="#method.secondary_container_color" class="fn">secondary_container_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @secondary_container_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.secondary_component_color" class="method"><h4 class="code-header">pub fn <a href="#method.secondary_component_color" class="fn">secondary_component_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @secondary_component_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.button_bg_color" class="method"><h4 class="code-header">pub fn <a href="#method.button_bg_color" class="fn">button_bg_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @button_bg_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_bg_color" class="method"><h4 class="code-header">pub fn <a href="#method.on_bg_color" class="fn">on_bg_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @on_bg_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_bg_component_color" class="method"><h4 class="code-header">pub fn <a href="#method.on_bg_component_color" class="fn">on_bg_component_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @on_bg_component_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_primary_container_color" class="method"><h4 class="code-header">pub fn <a href="#method.on_primary_container_color" class="fn">on_primary_container_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @on_primary_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_primary_component_color" class="method"><h4 class="code-header">pub fn <a href="#method.on_primary_component_color" class="fn">on_primary_component_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @on_primary_component_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_secondary_container_color" class="method"><h4 class="code-header">pub fn <a href="#method.on_secondary_container_color" class="fn">on_secondary_container_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @on_secondary_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_secondary_component_color" class="method"><h4 class="code-header">pub fn <a href="#method.on_secondary_component_color" class="fn">on_secondary_component_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @on_secondary_component_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.accent_text_color" class="method"><h4 class="code-header">pub fn <a href="#method.accent_text_color" class="fn">accent_text_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @accent_text_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.success_text_color" class="method"><h4 class="code-header">pub fn <a href="#method.success_text_color" class="fn">success_text_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @success_text_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.warning_text_color" class="method"><h4 class="code-header">pub fn <a href="#method.warning_text_color" class="fn">warning_text_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @warning_text_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.destructive_text_color" class="method"><h4 class="code-header">pub fn <a href="#method.destructive_text_color" class="fn">destructive_text_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @destructive_text_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_accent_color" class="method"><h4 class="code-header">pub fn <a href="#method.on_accent_color" class="fn">on_accent_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @on_accent_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_success_color" class="method"><h4 class="code-header">pub fn <a href="#method.on_success_color" class="fn">on_success_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @on_success_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_warning_color" class="method"><h4 class="code-header">pub fn <a href="#method.on_warning_color" class="fn">on_warning_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @on_warning_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.on_destructive_color" class="method"><h4 class="code-header">pub fn <a href="#method.on_destructive_color" class="fn">on_destructive_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @on_destructive_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.button_color" class="method"><h4 class="code-header">pub fn <a href="#method.button_color" class="fn">button_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @button_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.bg_divider" class="method"><h4 class="code-header">pub fn <a href="#method.bg_divider" class="fn">bg_divider</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @bg_divider</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.bg_component_divider" class="method"><h4 class="code-header">pub fn <a href="#method.bg_component_divider" class="fn">bg_component_divider</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @bg_component_divider</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.primary_container_divider" class="method"><h4 class="code-header">pub fn <a href="#method.primary_container_divider" class="fn">primary_container_divider</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @primary_container_divider</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.primary_component_divider" class="method"><h4 class="code-header">pub fn <a href="#method.primary_component_divider" class="fn">primary_component_divider</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @primary_component_divider</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.secondary_container_divider" class="method"><h4 class="code-header">pub fn <a href="#method.secondary_container_divider" class="fn">secondary_container_divider</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @secondary_container_divider</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.button_divider" class="method"><h4 class="code-header">pub fn <a href="#method.button_divider" class="fn">button_divider</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @button_divider</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.window_header_bg" class="method"><h4 class="code-header">pub fn <a href="#method.window_header_bg" class="fn">window_header_bg</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @window_header_bg</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.space_none" class="method"><h4 class="code-header">pub fn <a href="#method.space_none" class="fn">space_none</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>get @space_none</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.space_xxxs" class="method"><h4 class="code-header">pub fn <a href="#method.space_xxxs" class="fn">space_xxxs</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>get @space_xxxs</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.space_xxs" class="method"><h4 class="code-header">pub fn <a href="#method.space_xxs" class="fn">space_xxs</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>get @space_xxs</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.space_xs" class="method"><h4 class="code-header">pub fn <a href="#method.space_xs" class="fn">space_xs</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>get @space_xs</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.space_s" class="method"><h4 class="code-header">pub fn <a href="#method.space_s" class="fn">space_s</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>get @space_s</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.space_m" class="method"><h4 class="code-header">pub fn <a href="#method.space_m" class="fn">space_m</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>get @space_m</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.space_l" class="method"><h4 class="code-header">pub fn <a href="#method.space_l" class="fn">space_l</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>get @space_l</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.space_xl" class="method"><h4 class="code-header">pub fn <a href="#method.space_xl" class="fn">space_xl</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>get @space_xl</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.space_xxl" class="method"><h4 class="code-header">pub fn <a href="#method.space_xxl" class="fn">space_xxl</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>get @space_xxl</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.space_xxxl" class="method"><h4 class="code-header">pub fn <a href="#method.space_xxxl" class="fn">space_xxxl</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>get @space_xxxl</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.radius_0" class="method"><h4 class="code-header">pub fn <a href="#method.radius_0" class="fn">radius_0</a>(&amp;self) -&gt; [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">4</a>]</h4></section></summary><div class="docblock"><p>get @radius_0</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.radius_xs" class="method"><h4 class="code-header">pub fn <a href="#method.radius_xs" class="fn">radius_xs</a>(&amp;self) -&gt; [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">4</a>]</h4></section></summary><div class="docblock"><p>get @radius_xs</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.radius_s" class="method"><h4 class="code-header">pub fn <a href="#method.radius_s" class="fn">radius_s</a>(&amp;self) -&gt; [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">4</a>]</h4></section></summary><div class="docblock"><p>get @radius_s</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.radius_m" class="method"><h4 class="code-header">pub fn <a href="#method.radius_m" class="fn">radius_m</a>(&amp;self) -&gt; [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">4</a>]</h4></section></summary><div class="docblock"><p>get @radius_m</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.radius_l" class="method"><h4 class="code-header">pub fn <a href="#method.radius_l" class="fn">radius_l</a>(&amp;self) -&gt; [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">4</a>]</h4></section></summary><div class="docblock"><p>get @radius_l</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.radius_xl" class="method"><h4 class="code-header">pub fn <a href="#method.radius_xl" class="fn">radius_xl</a>(&amp;self) -&gt; [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">4</a>]</h4></section></summary><div class="docblock"><p>get @radius_xl</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.shade_color" class="method"><h4 class="code-header">pub fn <a href="#method.shade_color" class="fn">shade_color</a>(&amp;self) -&gt; <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>get @shade_color</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_active" class="method"><h4 class="code-header">pub fn <a href="#method.get_active" class="fn">get_active</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a>, (<a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;, <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a>)&gt;</h4></section></summary><div class="docblock"><p>Get the active theme based on the current theme mode.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.with_accent" class="method"><h4 class="code-header">pub fn <a href="#method.with_accent" class="fn">with_accent</a>(&amp;self, c: <a class="struct" href="palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;) -&gt; <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h4></section></summary><div class="docblock"><p>Rebuild the current theme with the provided accent</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gtk_prefer_colorscheme" class="method"><h4 class="code-header">pub fn <a href="#method.gtk_prefer_colorscheme" class="fn">gtk_prefer_colorscheme</a>() -&gt; <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h4></section></summary><div class="docblock"><p>choose default color palette based on preferred GTK color scheme</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.preferred_theme" class="method"><h4 class="code-header">pub fn <a href="#method.preferred_theme" class="fn">preferred_theme</a>() -&gt; <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h4></section></summary><div class="docblock"><p>check current desktop environment and preferred color scheme and set it as default</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Theme-2" class="impl"><a href="#impl-Theme-2" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_gtk4" class="method"><h4 class="code-header">pub fn <a href="#method.as_gtk4" class="fn">as_gtk4</a>(&amp;self) -&gt; <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>turn the theme into css</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.write_gtk4" class="method"><h4 class="code-header">pub fn <a href="#method.write_gtk4" class="fn">write_gtk4</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>write the CSS to the appropriate directory
Should be written in the XDG config directory for gtk-4.0</p>
<h5 id="errors"><a class="doc-anchor" href="#errors">§</a>Errors</h5>
<p>Returns an <code>OutputError</code> if there is an error writing the CSS file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.apply_gtk" class="method"><h4 class="code-header">pub fn <a href="#method.apply_gtk" class="fn">apply_gtk</a>(is_dark: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>Apply gtk color variable settings</p>
<h5 id="errors-1"><a class="doc-anchor" href="#errors-1">§</a>Errors</h5>
<p>Returns an <code>OutputError</code> if there is an error applying the CSS file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.reset_gtk" class="method"><h4 class="code-header">pub fn <a href="#method.reset_gtk" class="fn">reset_gtk</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>Reset the applied gtk css</p>
<h5 id="errors-2"><a class="doc-anchor" href="#errors-2">§</a>Errors</h5>
<p>Returns an <code>OutputError</code> if there is an error resetting the CSS file.</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Theme-3" class="impl"><a href="#impl-Theme-3" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_qpalette" class="method"><h4 class="code-header">pub fn <a href="#method.as_qpalette" class="fn">as_qpalette</a>(&amp;self) -&gt; <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Produces a QPalette ini file for qt5ct and qt6ct.</p>
<p>Example file: https://github.com/trialuser02/qt6ct/blob/master/colors/airy.conf</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.write_qt56ct" class="method"><h4 class="code-header">pub fn <a href="#method.write_qt56ct" class="fn">write_qt56ct</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>Writes the QPalette ini files to:</p>
<ul>
<li><code>~/.config/qt6ct/colors/</code></li>
<li><code>~/.config/qt5ct/colors/</code></li>
</ul>
</div></details><details class="toggle method-toggle" open><summary><section id="method.apply_qt56ct" class="method"><h4 class="code-header">pub fn <a href="#method.apply_qt56ct" class="fn">apply_qt56ct</a>(is_dark: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>Edits qt{5,6}ct.conf to use COSMIC styles if needed.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.reset_qt56ct" class="method"><h4 class="code-header">pub fn <a href="#method.reset_qt56ct" class="fn">reset_qt56ct</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>Reset the applied qt56ct config by removing COSMIC-specific entries from the config file.</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Theme-4" class="impl"><a href="#impl-Theme-4" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_kcolorscheme" class="method"><h4 class="code-header">pub fn <a href="#method.as_kcolorscheme" class="fn">as_kcolorscheme</a>(&amp;self) -&gt; <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Produces a color scheme ini file for Qt.</p>
<p>Some high-level documentation for this file can be found at:</p>
<ul>
<li>https://api.kde.org/kcolorscheme.html</li>
<li>https://web.archive.org/web/20250402234329/https://docs.kde.org/stable5/en/plasma-workspace/kcontrol/colors/</li>
</ul>
</div></details><details class="toggle method-toggle" open><summary><section id="method.write_qt" class="method"><h4 class="code-header">pub fn <a href="#method.write_qt" class="fn">write_qt</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>Write the color scheme to the appropriate directory.
Should be written in <code>~/.local/share/color-schemes/</code>.</p>
<p>See the docs: https://develop.kde.org/docs/plasma/#color-scheme</p>
<h5 id="errors-3"><a class="doc-anchor" href="#errors-3">§</a>Errors</h5>
<p>Returns an <code>OutputError</code> if there is an error writing the colors file.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.apply_qt" class="method"><h4 class="code-header">pub fn <a href="#method.apply_qt" class="fn">apply_qt</a>(is_dark: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>Apply the color scheme by copying its values to <code>~/.config/kdeglobals</code>.</p>
<p>See the docs: https://develop.kde.org/docs/plasma/#color-scheme</p>
<h5 id="errors-4"><a class="doc-anchor" href="#errors-4">§</a>Errors</h5>
<p>Returns an <code>OutputError</code> if there is an error applying the color scheme.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.reset_qt" class="method"><h4 class="code-header">pub fn <a href="#method.reset_qt" class="fn">reset_qt</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>Reset the applied qt colors by removing color scheme values from the
<code>~/.config/kdeglobals</code> file.</p>
<p>This does not restore the backed up kdeglobals file.</p>
<h5 id="errors-5"><a class="doc-anchor" href="#errors-5">§</a>Errors</h5>
<p>Returns an <code>OutputError</code> if there is an error resetting the CSS file.</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Theme-5" class="impl"><a href="#impl-Theme-5" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="method.apply_vs_code" class="method"><h4 class="code-header">pub fn <a href="#method.apply_vs_code" class="fn">apply_vs_code</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section><section id="method.reset_vs_code" class="method"><h4 class="code-header">pub fn <a href="#method.reset_vs_code" class="fn">reset_vs_code</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Theme-6" class="impl"><a href="#impl-Theme-6" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.apply_exports" class="method"><h4 class="code-header">pub fn <a href="#method.apply_exports" class="fn">apply_exports</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>Apply COSMIC theme exports for GTK and Qt applications.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.write_exports" class="method"><h4 class="code-header">pub fn <a href="#method.write_exports" class="fn">write_exports</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>Write COSMIC theme exports for GTK and Qt applications.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.reset_exports" class="method"><h4 class="code-header">pub fn <a href="#method.reset_exports" class="fn">reset_exports</a>() -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, OutputError&gt;</h4></section></summary><div class="docblock"><p>Un-export GTK and Qt theme configurations applied by us.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Theme" class="impl"><a href="#impl-Clone-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h4></section></summary><div class='docblock'>Returns a duplicate of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#213-215">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: &amp;Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-CosmicConfigEntry-for-Theme" class="impl"><a href="#impl-CosmicConfigEntry-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../cosmic_config/trait.CosmicConfigEntry.html" title="trait cosmic::cosmic_config::CosmicConfigEntry">CosmicConfigEntry</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.VERSION" class="associatedconstant trait-impl"><a href="#associatedconstant.VERSION" class="anchor">§</a><h4 class="code-header">const <a href="../cosmic_config/trait.CosmicConfigEntry.html#associatedconstant.VERSION" class="constant">VERSION</a>: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a> = 1u64</h4></section><section id="method.write_entry" class="method trait-impl"><a href="#method.write_entry" class="anchor">§</a><h4 class="code-header">fn <a href="../cosmic_config/trait.CosmicConfigEntry.html#tymethod.write_entry" class="fn">write_entry</a>(&amp;self, config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;</h4></section><section id="method.get_entry" class="method trait-impl"><a href="#method.get_entry" class="anchor">§</a><h4 class="code-header">fn <a href="../cosmic_config/trait.CosmicConfigEntry.html#tymethod.get_entry" class="fn">get_entry</a>(config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a>, (<a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;, <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a>)&gt;</h4></section><details class="toggle method-toggle" open><summary><section id="method.update_keys" class="method trait-impl"><a href="#method.update_keys" class="anchor">§</a><h4 class="code-header">fn <a href="../cosmic_config/trait.CosmicConfigEntry.html#tymethod.update_keys" class="fn">update_keys</a>&lt;T&gt;(
&amp;mut self,
config: &amp;<a class="struct" href="../cosmic_config/struct.Config.html" title="struct cosmic::cosmic_config::Config">Config</a>,
changed_keys: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[T]</a>,
) -&gt; (<a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../cosmic_config/enum.Error.html" title="enum cosmic::cosmic_config::Error">Error</a>&gt;, <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a>&lt;&amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;)<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,</div></h4></section></summary><div class='docblock'>Returns the keys that were updated</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Theme" class="impl"><a href="#impl-Debug-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/fmt/trait.Debug.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::fmt::Debug">Debug</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="../cctk/sctk/reexports/client/backend/smallvec/alloc/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/fmt/struct.Formatter.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/fmt/struct.Error.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="../cctk/sctk/reexports/client/backend/smallvec/alloc/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Default-for-Theme" class="impl"><a href="#impl-Default-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -&gt; <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-Theme" class="impl"><a href="#impl-Deserialize%3C'de%3E-for-Theme" class="anchor">§</a><h3 class="code-header">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserialize.html" title="trait serde_core::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a>&lt;__D&gt;(
__deserializer: __D,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a>, &lt;__D as <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a>&lt;'de&gt;&gt;::<a class="associatedtype" href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>&gt;<div class="where">where
__D: <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a>&lt;'de&gt;,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CCosmicPalette%3E-for-Theme" class="impl"><a href="#impl-From%3CCosmicPalette%3E-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="enum" href="enum.CosmicPalette.html" title="enum cosmic::cosmic_theme::CosmicPalette">CosmicPalette</a>&gt; for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(p: <a class="enum" href="enum.CosmicPalette.html" title="enum cosmic::cosmic_theme::CosmicPalette">CosmicPalette</a>) -&gt; <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-Theme" class="impl"><a href="#impl-PartialEq-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#265">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Rhs</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-Theme" class="impl"><a href="#impl-Serialize-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serialize.html" title="trait serde_core::ser::Serialize">Serialize</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a>&lt;__S&gt;(
&amp;self,
__serializer: __S,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;__S as <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serializer.html" title="trait serde_core::ser::Serializer">Serializer</a>&gt;::<a class="associatedtype" href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serializer.html#associatedtype.Ok" title="type serde_core::ser::Serializer::Ok">Ok</a>, &lt;__S as <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serializer.html" title="trait serde_core::ser::Serializer">Serializer</a>&gt;::<a class="associatedtype" href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serializer.html#associatedtype.Error" title="type serde_core::ser::Serializer::Error">Error</a>&gt;<div class="where">where
__S: <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serializer.html" title="trait serde_core::ser::Serializer">Serializer</a>,</div></h4></section></summary><div class='docblock'>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serialize.html#tymethod.serialize">Read more</a></div></details></div></details><section id="impl-StructuralPartialEq-for-Theme" class="impl"><a href="#impl-StructuralPartialEq-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Theme" class="impl"><a href="#impl-Freeze-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section><section id="impl-RefUnwindSafe-for-Theme" class="impl"><a href="#impl-RefUnwindSafe-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section><section id="impl-Send-for-Theme" class="impl"><a href="#impl-Send-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section><section id="impl-Sync-for-Theme" class="impl"><a href="#impl-Sync-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section><section id="impl-Unpin-for-Theme" class="impl"><a href="#impl-Unpin-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section><section id="impl-UnwindSafe-for-Theme" class="impl"><a href="#impl-UnwindSafe-for-Theme" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/chromatic_adaptation.rs.html#205-210">Source</a><a href="#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S" class="anchor">§</a><h3 class="code-header">impl&lt;S, D, Swp, Dwp, T&gt; <a class="trait" href="palette/chromatic_adaptation/trait.AdaptInto.html" title="trait cosmic::cosmic_theme::palette::chromatic_adaptation::AdaptInto">AdaptInto</a>&lt;D, Swp, Dwp, T&gt; for S<div class="where">where
T: <a class="trait" href="palette/num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="palette/num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="palette/num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
Swp: <a class="trait" href="palette/white_point/trait.WhitePoint.html" title="trait cosmic::cosmic_theme::palette::white_point::WhitePoint">WhitePoint</a>&lt;T&gt;,
Dwp: <a class="trait" href="palette/white_point/trait.WhitePoint.html" title="trait cosmic::cosmic_theme::palette::white_point::WhitePoint">WhitePoint</a>&lt;T&gt;,
D: <a class="trait" href="palette/chromatic_adaptation/trait.AdaptFrom.html" title="trait cosmic::cosmic_theme::palette::chromatic_adaptation::AdaptFrom">AdaptFrom</a>&lt;S, Swp, Dwp, T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.adapt_into_using" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/chromatic_adaptation.rs.html#213">Source</a><a href="#method.adapt_into_using" class="anchor">§</a><h4 class="code-header">fn <a href="palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using" class="fn">adapt_into_using</a>&lt;M&gt;(self, method: M) -&gt; D<div class="where">where
M: <a class="trait" href="palette/chromatic_adaptation/trait.TransformMatrix.html" title="trait cosmic::cosmic_theme::palette::chromatic_adaptation::TransformMatrix">TransformMatrix</a>&lt;T&gt;,</div></h4></section></summary><div class='docblock'>Convert the source color to the destination color using the specified
method.</div></details><details class="toggle method-toggle" open><summary><section id="method.adapt_into" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/chromatic_adaptation.rs.html#196">Source</a><a href="#method.adapt_into" class="anchor">§</a><h4 class="code-header">fn <a href="palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into" class="fn">adapt_into</a>(self) -&gt; D</h4></section></summary><div class='docblock'>Convert the source color to the destination color using the bradford
method by default.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Also-for-T" class="impl"><a href="#impl-Also-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../trait.Also.html" title="trait cosmic::Also">Also</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.also" class="method trait-impl"><a href="#method.also" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.Also.html#method.also" class="fn">also</a>&lt;F&gt;(self, block: F) -&gt; Self<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut Self),</div></h4></section></summary><div class='docblock'>Apply a function to this value and return the (possibly) modified value.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AnyEq-for-T" class="impl"><a href="#impl-AnyEq-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; AnyEq for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>,</div></h3></section></summary><div class="impl-items"><section id="method.equals" class="method trait-impl"><a href="#method.equals" class="anchor">§</a><h4 class="code-header">fn <a class="fn">equals</a>(&amp;self, other: &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.as_any-1" class="method trait-impl"><a href="#method.as_any-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Apply%3CRes%3E-for-T" class="impl"><a href="#impl-Apply%3CRes%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, Res&gt; <a class="trait" href="../trait.Apply.html" title="trait cosmic::Apply">Apply</a>&lt;Res&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.apply" class="method trait-impl"><a href="#method.apply" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.Apply.html#method.apply" class="fn">apply</a>&lt;F&gt;(self, f: F) -&gt; Res<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self) -&gt; Res,
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Apply a function which takes the parameter by value.</div></details><details class="toggle method-toggle" open><summary><section id="method.apply_ref" class="method trait-impl"><a href="#method.apply_ref" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.Apply.html#method.apply_ref" class="fn">apply_ref</a>&lt;F&gt;(&amp;self, f: F) -&gt; Res<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;Self) -&gt; Res,</div></h4></section></summary><div class='docblock'>Apply a function which takes the parameter by reference.</div></details><details class="toggle method-toggle" open><summary><section id="method.apply_mut" class="method trait-impl"><a href="#method.apply_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.Apply.html#method.apply_mut" class="fn">apply_mut</a>&lt;F&gt;(&amp;mut self, f: F) -&gt; Res<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut Self) -&gt; Res,</div></h4></section></summary><div class='docblock'>Apply a function which takes the parameter by mutable reference.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ArraysFrom%3CC%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_arrays_traits.rs.html#271-273">Source</a><a href="#impl-ArraysFrom%3CC%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, C&gt; <a class="trait" href="palette/cast/trait.ArraysFrom.html" title="trait cosmic::cosmic_theme::palette::cast::ArraysFrom">ArraysFrom</a>&lt;C&gt; for T<div class="where">where
C: <a class="trait" href="palette/cast/trait.IntoArrays.html" title="trait cosmic::cosmic_theme::palette::cast::IntoArrays">IntoArrays</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.arrays_from" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_arrays_traits.rs.html#276">Source</a><a href="#method.arrays_from" class="anchor">§</a><h4 class="code-header">fn <a href="palette/cast/trait.ArraysFrom.html#tymethod.arrays_from" class="fn">arrays_from</a>(colors: C) -&gt; T</h4></section></summary><div class='docblock'>Cast a collection of colors into a collection of arrays.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ArraysInto%3CC%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_arrays_traits.rs.html#329-331">Source</a><a href="#impl-ArraysInto%3CC%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, C&gt; <a class="trait" href="palette/cast/trait.ArraysInto.html" title="trait cosmic::cosmic_theme::palette::cast::ArraysInto">ArraysInto</a>&lt;C&gt; for T<div class="where">where
C: <a class="trait" href="palette/cast/trait.FromArrays.html" title="trait cosmic::cosmic_theme::palette::cast::FromArrays">FromArrays</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.arrays_into" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_arrays_traits.rs.html#334">Source</a><a href="#method.arrays_into" class="anchor">§</a><h4 class="code-header">fn <a href="palette/cast/trait.ArraysInto.html#tymethod.arrays_into" class="fn">arrays_into</a>(self) -&gt; C</h4></section></summary><div class='docblock'>Cast this collection of arrays into a collection of colors.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.Borrow.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.BorrowMut.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#143-145">Source</a><a href="#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U" class="anchor">§</a><h3 class="code-header">impl&lt;WpParam, T, U&gt; <a class="trait" href="palette/cam16/trait.Cam16IntoUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16IntoUnclamped">Cam16IntoUnclamped</a>&lt;WpParam, T&gt; for U<div class="where">where
T: <a class="trait" href="palette/cam16/trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a>&lt;WpParam, U&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Scalar-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#147">Source</a><a href="#associatedtype.Scalar-1" class="anchor">§</a><h4 class="code-header">type <a href="palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar" class="associatedtype">Scalar</a> = &lt;T as <a class="trait" href="palette/cam16/trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a>&lt;WpParam, U&gt;&gt;::<a class="associatedtype" href="palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped::Scalar">Scalar</a></h4></section></summary><div class='docblock'>The number type thats used in <code>parameters</code> when converting.</div></details><details class="toggle method-toggle" open><summary><section id="method.cam16_into_unclamped" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#149">Source</a><a href="#method.cam16_into_unclamped" class="anchor">§</a><h4 class="code-header">fn <a href="palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped" class="fn">cam16_into_unclamped</a>(
self,
parameters: <a class="struct" href="palette/cam16/struct.BakedParameters.html" title="struct cosmic::cosmic_theme::palette::cam16::BakedParameters">BakedParameters</a>&lt;WpParam, &lt;U as <a class="trait" href="palette/cam16/trait.Cam16IntoUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16IntoUnclamped">Cam16IntoUnclamped</a>&lt;WpParam, T&gt;&gt;::<a class="associatedtype" href="palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16IntoUnclamped::Scalar">Scalar</a>&gt;,
) -&gt; T</h4></section></summary><div class='docblock'>Converts <code>self</code> into <code>C</code>, using the provided parameters.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#483">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#485">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&amp;self, dest: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dest</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ComponentsFrom%3CC%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_components_traits.rs.html#414-416">Source</a><a href="#impl-ComponentsFrom%3CC%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, C&gt; <a class="trait" href="palette/cast/trait.ComponentsFrom.html" title="trait cosmic::cosmic_theme::palette::cast::ComponentsFrom">ComponentsFrom</a>&lt;C&gt; for T<div class="where">where
C: <a class="trait" href="palette/cast/trait.IntoComponents.html" title="trait cosmic::cosmic_theme::palette::cast::IntoComponents">IntoComponents</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.components_from" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_components_traits.rs.html#419">Source</a><a href="#method.components_from" class="anchor">§</a><h4 class="code-header">fn <a href="palette/cast/trait.ComponentsFrom.html#tymethod.components_from" class="fn">components_from</a>(colors: C) -&gt; T</h4></section></summary><div class='docblock'>Cast a collection of colors into a collection of color components.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Downcast-for-T" class="impl"><a href="#impl-Downcast-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Downcast for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_any" class="method trait-impl"><a href="#method.into_any" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_any</a>(self: <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a>&lt;T&gt;) -&gt; <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt;</h4></section></summary><div class='docblock'>Convert <code>Box&lt;dyn Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Box&lt;dyn Any&gt;</code>. <code>Box&lt;dyn Any&gt;</code> can
then be further <code>downcast</code> into <code>Box&lt;ConcreteType&gt;</code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_any_rc" class="method trait-impl"><a href="#method.into_any_rc" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_any_rc</a>(self: <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/rc/struct.Rc.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::rc::Rc">Rc</a>&lt;T&gt;) -&gt; <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/rc/struct.Rc.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::rc::Rc">Rc</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt;</h4></section></summary><div class='docblock'>Convert <code>Rc&lt;Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Rc&lt;Any&gt;</code>. <code>Rc&lt;Any&gt;</code> can then be
further <code>downcast</code> into <code>Rc&lt;ConcreteType&gt;</code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_any" class="method trait-impl"><a href="#method.as_any" class="anchor">§</a><h4 class="code-header">fn <a class="fn">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section></summary><div class='docblock'>Convert <code>&amp;Trait</code> (where <code>Trait: Downcast</code>) to <code>&amp;Any</code>. This is needed since Rust cannot
generate <code>&amp;Any</code>s vtable from <code>&amp;Trait</code>s.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_any_mut" class="method trait-impl"><a href="#method.as_any_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">as_any_mut</a>(&amp;mut self) -&gt; &amp;mut (dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section></summary><div class='docblock'>Convert <code>&amp;mut Trait</code> (where <code>Trait: Downcast</code>) to <code>&amp;Any</code>. This is needed since Rust cannot
generate <code>&amp;mut Any</code>s vtable from <code>&amp;mut Trait</code>s.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DowncastSync-for-T" class="impl"><a href="#impl-DowncastSync-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; DowncastSync for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_any_arc" class="method trait-impl"><a href="#method.into_any_arc" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_any_arc</a>(self: <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/sync/struct.Arc.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::sync::Arc">Arc</a>&lt;T&gt;) -&gt; <a class="struct" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/sync/struct.Arc.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::sync::Arc">Arc</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;</h4></section></summary><div class='docblock'>Convert <code>Arc&lt;Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Arc&lt;Any&gt;</code>. <code>Arc&lt;Any&gt;</code> can then be
further <code>downcast</code> into <code>Arc&lt;ConcreteType&gt;</code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794">Source</a><a href="#method.from-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromAngle%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#65">Source</a><a href="#impl-FromAngle%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="palette/angle/trait.FromAngle.html" title="trait cosmic::cosmic_theme::palette::angle::FromAngle">FromAngle</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_angle" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#67">Source</a><a href="#method.from_angle" class="anchor">§</a><h4 class="code-header">fn <a href="palette/angle/trait.FromAngle.html#tymethod.from_angle" class="fn">from_angle</a>(angle: T) -&gt; T</h4></section></summary><div class='docblock'>Performs a conversion from <code>angle</code>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromStimulus%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/stimulus.rs.html#85">Source</a><a href="#impl-FromStimulus%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="palette/stimulus/trait.FromStimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::FromStimulus">FromStimulus</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="palette/stimulus/trait.IntoStimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::IntoStimulus">IntoStimulus</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_stimulus" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/stimulus.rs.html#87">Source</a><a href="#method.from_stimulus" class="anchor">§</a><h4 class="code-header">fn <a href="palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus" class="fn">from_stimulus</a>(other: U) -&gt; T</h4></section></summary><div class='docblock'>Converts <code>other</code> into <code>Self</code>, while performing the appropriate scaling,
rounding and clamping.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -&gt; Instrumented&lt;Self&gt; <a href="#" class="tooltip" data-notable-ty="Instrumented&lt;Self&gt;"></a></h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -&gt; Instrumented&lt;Self&gt; <a href="#" class="tooltip" data-notable-ty="Instrumented&lt;Self&gt;"></a></h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoAngle%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#78-80">Source</a><a href="#impl-IntoAngle%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="palette/angle/trait.IntoAngle.html" title="trait cosmic::cosmic_theme::palette::angle::IntoAngle">IntoAngle</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="palette/angle/trait.FromAngle.html" title="trait cosmic::cosmic_theme::palette::angle::FromAngle">FromAngle</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_angle" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#83">Source</a><a href="#method.into_angle" class="anchor">§</a><h4 class="code-header">fn <a href="palette/angle/trait.IntoAngle.html#tymethod.into_angle" class="fn">into_angle</a>(self) -&gt; U</h4></section></summary><div class='docblock'>Performs a conversion into <code>T</code>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoBoot%3CState,+Message%3E-for-State" class="impl"><a href="#impl-IntoBoot%3CState,+Message%3E-for-State" class="anchor">§</a><h3 class="code-header">impl&lt;State, Message&gt; <a class="trait" href="../iced/application/trait.IntoBoot.html" title="trait cosmic::iced::application::IntoBoot">IntoBoot</a>&lt;State, Message&gt; for State</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_boot" class="method trait-impl"><a href="#method.into_boot" class="anchor">§</a><h4 class="code-header">fn <a href="../iced/application/trait.IntoBoot.html#tymethod.into_boot" class="fn">into_boot</a>(self) -&gt; (State, <a class="struct" href="../struct.Task.html" title="struct cosmic::Task">Task</a>&lt;Message&gt;)</h4></section></summary><div class='docblock'>Turns some type into the initial state of some <a href="../iced/struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#114-116">Source</a><a href="#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U" class="anchor">§</a><h3 class="code-header">impl&lt;WpParam, T, U&gt; <a class="trait" href="palette/cam16/trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a>&lt;WpParam, T&gt; for U<div class="where">where
T: <a class="trait" href="palette/cam16/trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a>&lt;WpParam, U&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Scalar" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#118">Source</a><a href="#associatedtype.Scalar" class="anchor">§</a><h4 class="code-header">type <a href="palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar" class="associatedtype">Scalar</a> = &lt;T as <a class="trait" href="palette/cam16/trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a>&lt;WpParam, U&gt;&gt;::<a class="associatedtype" href="palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped::Scalar">Scalar</a></h4></section></summary><div class='docblock'>The number type thats used in <code>parameters</code> when converting.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_cam16_unclamped" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#120">Source</a><a href="#method.into_cam16_unclamped" class="anchor">§</a><h4 class="code-header">fn <a href="palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped" class="fn">into_cam16_unclamped</a>(
self,
parameters: <a class="struct" href="palette/cam16/struct.BakedParameters.html" title="struct cosmic::cosmic_theme::palette::cam16::BakedParameters">BakedParameters</a>&lt;WpParam, &lt;U as <a class="trait" href="palette/cam16/trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a>&lt;WpParam, T&gt;&gt;::<a class="associatedtype" href="palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped::Scalar">Scalar</a>&gt;,
) -&gt; T</h4></section></summary><div class='docblock'>Converts <code>self</code> into <code>C</code>, using the provided parameters.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoColor%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/convert/from_into_color.rs.html#129-131">Source</a><a href="#impl-IntoColor%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="palette/trait.IntoColor.html" title="trait cosmic::cosmic_theme::palette::IntoColor">IntoColor</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="palette/trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_color" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/convert/from_into_color.rs.html#134">Source</a><a href="#method.into_color" class="anchor">§</a><h4 class="code-header">fn <a href="palette/trait.IntoColor.html#tymethod.into_color" class="fn">into_color</a>(self) -&gt; U</h4></section></summary><div class='docblock'>Convert into T with values clamped to the color defined bounds <a href="palette/trait.IntoColor.html#tymethod.into_color">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoColorUnclamped%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/convert/from_into_color_unclamped.rs.html#95-97">Source</a><a href="#impl-IntoColorUnclamped%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="palette/convert/trait.IntoColorUnclamped.html" title="trait cosmic::cosmic_theme::palette::convert::IntoColorUnclamped">IntoColorUnclamped</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="palette/convert/trait.FromColorUnclamped.html" title="trait cosmic::cosmic_theme::palette::convert::FromColorUnclamped">FromColorUnclamped</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_color_unclamped" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/convert/from_into_color_unclamped.rs.html#100">Source</a><a href="#method.into_color_unclamped" class="anchor">§</a><h4 class="code-header">fn <a href="palette/convert/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped" class="fn">into_color_unclamped</a>(self) -&gt; U</h4></section></summary><div class='docblock'>Convert into T. The resulting color might be invalid in its color space <a href="palette/convert/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoStimulus%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/stimulus.rs.html#109">Source</a><a href="#impl-IntoStimulus%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="palette/stimulus/trait.IntoStimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::IntoStimulus">IntoStimulus</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_stimulus" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/stimulus.rs.html#111">Source</a><a href="#method.into_stimulus" class="anchor">§</a><h4 class="code-header">fn <a href="palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus" class="fn">into_stimulus</a>(self) -&gt; T</h4></section></summary><div class='docblock'>Converts <code>self</code> into <code>T</code>, while performing the appropriate scaling,
rounding and clamping.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-NoneValue-for-T" class="impl"><a href="#impl-NoneValue-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; NoneValue for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.NoneType" class="associatedtype trait-impl"><a href="#associatedtype.NoneType" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">NoneType</a> = T</h4></section><details class="toggle method-toggle" open><summary><section id="method.null_value" class="method trait-impl"><a href="#method.null_value" class="anchor">§</a><h4 class="code-header">fn <a class="fn">null_value</a>() -&gt; T</h4></section></summary><div class='docblock'>The none-equivalent value.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.19.0/src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.19.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a> for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/typenum/1.19.0/src/typenum/type_operators.rs.html#35">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.19.0/typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.ToOwned.html" title="trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryComponentsInto%3CC%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_components_traits.rs.html#584-586">Source</a><a href="#impl-TryComponentsInto%3CC%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, C&gt; <a class="trait" href="palette/cast/trait.TryComponentsInto.html" title="trait cosmic::cosmic_theme::palette::cast::TryComponentsInto">TryComponentsInto</a>&lt;C&gt; for T<div class="where">where
C: <a class="trait" href="palette/cast/trait.TryFromComponents.html" title="trait cosmic::cosmic_theme::palette::cast::TryFromComponents">TryFromComponents</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_components_traits.rs.html#588">Source</a><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="palette/cast/trait.TryComponentsInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;C as <a class="trait" href="palette/cast/trait.TryFromComponents.html" title="trait cosmic::cosmic_theme::palette::cast::TryFromComponents">TryFromComponents</a>&lt;T&gt;&gt;::<a class="associatedtype" href="palette/cast/trait.TryFromComponents.html#associatedtype.Error" title="type cosmic::cosmic_theme::palette::cast::TryFromComponents::Error">Error</a></h4></section></summary><div class='docblock'>The error for when <code>try_into_colors</code> fails to cast.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_components_into" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_components_traits.rs.html#591">Source</a><a href="#method.try_components_into" class="anchor">§</a><h4 class="code-header">fn <a href="palette/cast/trait.TryComponentsInto.html#tymethod.try_components_into" class="fn">try_components_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;C, &lt;T as <a class="trait" href="palette/cast/trait.TryComponentsInto.html" title="trait cosmic::cosmic_theme::palette::cast::TryComponentsInto">TryComponentsInto</a>&lt;C&gt;&gt;::<a class="associatedtype" href="palette/cast/trait.TryComponentsInto.html#associatedtype.Error" title="type cosmic::cosmic_theme::palette::cast::TryComponentsInto::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Try to cast this collection of color components into a collection of
colors. <a href="palette/cast/trait.TryComponentsInto.html#tymethod.try_components_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="../iced/enum.Never.html" title="enum cosmic::iced::Never">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryIntoColor%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/convert/try_from_into_color.rs.html#110-112">Source</a><a href="#impl-TryIntoColor%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="palette/convert/trait.TryIntoColor.html" title="trait cosmic::cosmic_theme::palette::convert::TryIntoColor">TryIntoColor</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="palette/convert/trait.TryFromColor.html" title="trait cosmic::cosmic_theme::palette::convert::TryFromColor">TryFromColor</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.try_into_color" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/convert/try_from_into_color.rs.html#115">Source</a><a href="#method.try_into_color" class="anchor">§</a><h4 class="code-header">fn <a href="palette/convert/trait.TryIntoColor.html#tymethod.try_into_color" class="fn">try_into_color</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, <a class="struct" href="palette/convert/struct.OutOfBounds.html" title="struct cosmic::cosmic_theme::palette::convert::OutOfBounds">OutOfBounds</a>&lt;U&gt;&gt;</h4></section></summary><div class='docblock'>Convert into T, returning ok if the color is inside of its defined
range, otherwise an <code>OutOfBounds</code> error is returned which contains
the unclamped color. <a href="palette/convert/trait.TryIntoColor.html#tymethod.try_into_color">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-UintsFrom%3CC%3E-for-U" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_uints_traits.rs.html#325-327">Source</a><a href="#impl-UintsFrom%3CC%3E-for-U" class="anchor">§</a><h3 class="code-header">impl&lt;C, U&gt; <a class="trait" href="palette/cast/trait.UintsFrom.html" title="trait cosmic::cosmic_theme::palette::cast::UintsFrom">UintsFrom</a>&lt;C&gt; for U<div class="where">where
C: <a class="trait" href="palette/cast/trait.IntoUints.html" title="trait cosmic::cosmic_theme::palette::cast::IntoUints">IntoUints</a>&lt;U&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.uints_from" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_uints_traits.rs.html#330">Source</a><a href="#method.uints_from" class="anchor">§</a><h4 class="code-header">fn <a href="palette/cast/trait.UintsFrom.html#tymethod.uints_from" class="fn">uints_from</a>(colors: C) -&gt; U</h4></section></summary><div class='docblock'>Cast a collection of colors into a collection of unsigned integers.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-UintsInto%3CC%3E-for-U" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_uints_traits.rs.html#401-403">Source</a><a href="#impl-UintsInto%3CC%3E-for-U" class="anchor">§</a><h3 class="code-header">impl&lt;C, U&gt; <a class="trait" href="palette/cast/trait.UintsInto.html" title="trait cosmic::cosmic_theme::palette::cast::UintsInto">UintsInto</a>&lt;C&gt; for U<div class="where">where
C: <a class="trait" href="palette/cast/trait.FromUints.html" title="trait cosmic::cosmic_theme::palette::cast::FromUints">FromUints</a>&lt;U&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.uints_into" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cast/from_into_uints_traits.rs.html#406">Source</a><a href="#method.uints_into" class="anchor">§</a><h4 class="code-header">fn <a href="palette/cast/trait.UintsInto.html#tymethod.uints_into" class="fn">uints_into</a>(self) -&gt; C</h4></section></summary><div class='docblock'>Cast this collection of unsigned integers into a collection of colors.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-T" class="impl"><a href="#impl-VZip%3CV%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;V, T&gt; VZip&lt;V&gt; for T<div class="where">where
V: MultiLane&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -&gt; V</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; WithDispatch&lt;Self&gt; <a href="#" class="tooltip" data-notable-ty="WithDispatch&lt;Self&gt;"></a><div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Dispatch&gt;,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -&gt; WithDispatch&lt;Self&gt; <a href="#" class="tooltip" data-notable-ty="WithDispatch&lt;Self&gt;"></a></h4></section></summary><div class='docblock'>Attaches the current <a href="dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details><section id="impl-DeserializeOwned-for-T" class="impl"><a class="src rightside" href="https://docs.rs/serde_core/1.0.228/src/serde_core/de/mod.rs.html#633">Source</a><a href="#impl-DeserializeOwned-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.DeserializeOwned.html" title="trait serde_core::de::DeserializeOwned">DeserializeOwned</a> for T<div class="where">where
T: for&lt;'de&gt; <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserialize.html" title="trait serde_core::de::Deserialize">Deserialize</a>&lt;'de&gt;,</div></h3></section><section id="impl-MaybeClone-for-T" class="impl"><a href="#impl-MaybeClone-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../iced/daemon/program/message/trait.MaybeClone.html" title="trait cosmic::iced::daemon::program::message::MaybeClone">MaybeClone</a> for T</h3></section><section id="impl-MaybeDebug-for-T" class="impl"><a href="#impl-MaybeDebug-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../iced/daemon/program/message/trait.MaybeDebug.html" title="trait cosmic::iced::daemon::program::message::MaybeDebug">MaybeDebug</a> for T</h3></section><section id="impl-MaybeSend-for-T" class="impl"><a href="#impl-MaybeSend-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../iced/daemon/program/graphics/futures/trait.MaybeSend.html" title="trait cosmic::iced::daemon::program::graphics::futures::MaybeSend">MaybeSend</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-MaybeSend-for-T-1" class="impl"><a href="#impl-MaybeSend-for-T-1" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; MaybeSend for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-MaybeSync-for-T" class="impl"><a href="#impl-MaybeSync-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../iced/daemon/program/graphics/futures/trait.MaybeSync.html" title="trait cosmic::iced::daemon::program::graphics::futures::MaybeSync">MaybeSync</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-MaybeSync-for-T-1" class="impl"><a href="#impl-MaybeSync-for-T-1" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; MaybeSync for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section></div><script type="text/json" id="notable-traits-data">{"Instrumented<Self>":"<h3>Notable traits for <code>Instrumented&lt;T&gt;</code></h3><pre><code><div class=\"where\">impl&lt;T&gt; <a class=\"trait\" href=\"../iced/daemon/program/graphics/futures/futures/trait.Future.html\" title=\"trait cosmic::iced::daemon::program::graphics::futures::futures::Future\">Future</a> for Instrumented&lt;T&gt;<div class=\"where\">where\n T: <a class=\"trait\" href=\"../iced/daemon/program/graphics/futures/futures/trait.Future.html\" title=\"trait cosmic::iced::daemon::program::graphics::futures::futures::Future\">Future</a>,</div></div><div class=\"where\"> type <a href=\"../iced/daemon/program/graphics/futures/futures/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = &lt;T as <a class=\"trait\" href=\"../iced/daemon/program/graphics/futures/futures/trait.Future.html\" title=\"trait cosmic::iced::daemon::program::graphics::futures::futures::Future\">Future</a>&gt;::<a class=\"associatedtype\" href=\"../iced/daemon/program/graphics/futures/futures/trait.Future.html#associatedtype.Output\" title=\"type cosmic::iced::daemon::program::graphics::futures::futures::Future::Output\">Output</a>;</div>","WithDispatch<Self>":"<h3>Notable traits for <code>WithDispatch&lt;T&gt;</code></h3><pre><code><div class=\"where\">impl&lt;T&gt; <a class=\"trait\" href=\"../iced/daemon/program/graphics/futures/futures/trait.Future.html\" title=\"trait cosmic::iced::daemon::program::graphics::futures::futures::Future\">Future</a> for WithDispatch&lt;T&gt;<div class=\"where\">where\n T: <a class=\"trait\" href=\"../iced/daemon/program/graphics/futures/futures/trait.Future.html\" title=\"trait cosmic::iced::daemon::program::graphics::futures::futures::Future\">Future</a>,</div></div><div class=\"where\"> type <a href=\"../iced/daemon/program/graphics/futures/futures/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = &lt;T as <a class=\"trait\" href=\"../iced/daemon/program/graphics/futures/futures/trait.Future.html\" title=\"trait cosmic::iced::daemon::program::graphics::futures::futures::Future\">Future</a>&gt;::<a class=\"associatedtype\" href=\"../iced/daemon/program/graphics/futures/futures/trait.Future.html#associatedtype.Output\" title=\"type cosmic::iced::daemon::program::graphics::futures::futures::Future::Output\">Output</a>;</div>"}</script></section></div></main></body></html>