SystemAccentColors
struct · ferroui-themes-winui · v0.5.0
struct SystemAccentColors
The accent colour of the system and its shades, as resources.
Members
TYPEto_refACCENT_KEYACCENT_DARK1_KEYACCENT_DARK2_KEYACCENT_DARK3_KEYACCENT_LIGHT1_KEYACCENT_LIGHT2_KEYACCENT_LIGHT3_KEYconstructnewaccent_colorscalculate_accent_shades
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SystemAccentColors>
Returns a strong reference to this object.
ACCENT_KEY
const ACCENT_KEY: &'static str
ACCENT_DARK1_KEY
const ACCENT_DARK1_KEY: &'static str
ACCENT_DARK2_KEY
const ACCENT_DARK2_KEY: &'static str
ACCENT_DARK3_KEY
const ACCENT_DARK3_KEY: &'static str
ACCENT_LIGHT1_KEY
const ACCENT_LIGHT1_KEY: &'static str
ACCENT_LIGHT2_KEY
const ACCENT_LIGHT2_KEY: &'static str
ACCENT_LIGHT3_KEY
const ACCENT_LIGHT3_KEY: &'static str
construct
fn construct() -> Self
Field initialisation; see ResourceProvider::construct.
new
fn new() -> Ref<Self>
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyResourceProviderImplExtFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<SystemAccentColors>StaticTypeObjectTypeSubclassable<T>FerroObjectImplDefaultConstructibleResourceProviderImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.