FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SystemAccentColors

    struct · ferroui-themes-macos · 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

    accent_colors

    fn accent_colors(color_values: Option<&PlatformColorValues>) -> (Color, AccentColorShades)
    

    The accent colour and its shades for the colour values of the platform: the shades the system reports where it reports them (as WinUI reads them from UISettings), the shades computed from the accent otherwise; the default accent without platform settings.

    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.