FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SystemAccentColors

    struct · ferroui-themes-fluent · v0.5.0

    struct SystemAccentColors
    

    The accent colour of the system and its shades, as resources.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<SystemAccentColors>
    

    Returns a strong reference to this object.

    Source

    ACCENT_KEY

    const ACCENT_KEY: &'static str
    

    Source

    ACCENT_DARK1_KEY

    const ACCENT_DARK1_KEY: &'static str
    

    Source

    ACCENT_DARK2_KEY

    const ACCENT_DARK2_KEY: &'static str
    

    Source

    ACCENT_DARK3_KEY

    const ACCENT_DARK3_KEY: &'static str
    

    Source

    ACCENT_LIGHT1_KEY

    const ACCENT_LIGHT1_KEY: &'static str
    

    Source

    ACCENT_LIGHT2_KEY

    const ACCENT_LIGHT2_KEY: &'static str
    

    Source

    ACCENT_LIGHT3_KEY

    const ACCENT_LIGHT3_KEY: &'static str
    

    Source

    construct

    fn construct() -> Self
    

    Field initialisation; see ResourceProvider::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    calculate_accent_shades

    fn calculate_accent_shades(accent_color: Color) -> (Color, Color, Color, Color, Color, Color)
    

    The shades of an accent colour: three darker and three lighter ones.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.