pub struct ResolvedShellPreferences {
pub high_contrast: bool,
pub accent: u32,
pub text_scale: f32,
pub typography: ShellTypography,
pub reduced_motion: bool,
pub double_click_action: TitlebarAction,
pub middle_click_action: TitlebarAction,
pub right_click_action: TitlebarAction,
}Expand description
The values actually used by the shared client frame after overrides and fallbacks.
Fields§
§high_contrast: boolWhether the frame uses high-contrast colors.
accent: u32Encoded sRGB focus accent, 0xRRGGBB.
text_scale: f32Logical text/target scale, clamped to 0.5–4 independently of device DPI.
typography: ShellTypographyUnscaled client-frame typography.
reduced_motion: boolResolved policy; no frame animations are currently implemented.
double_click_action: TitlebarActionEffective title-bar double-click action.
middle_click_action: TitlebarActionEffective title-bar middle-click action.
right_click_action: TitlebarActionEffective title-bar right-click action.
Implementations§
Source§impl ResolvedShellPreferences
impl ResolvedShellPreferences
Sourcepub fn resolved_look(
&self,
appearance: WindowAppearance,
active: bool,
) -> ResolvedShellLook
pub fn resolved_look( &self, appearance: WindowAppearance, active: bool, ) -> ResolvedShellLook
Resolve the same style tokens used by the native client frame and its preview.
Trait Implementations§
Source§impl Clone for ResolvedShellPreferences
impl Clone for ResolvedShellPreferences
Source§impl Debug for ResolvedShellPreferences
impl Debug for ResolvedShellPreferences
Source§impl PartialEq for ResolvedShellPreferences
impl PartialEq for ResolvedShellPreferences
impl StructuralPartialEq for ResolvedShellPreferences
Auto Trait Implementations§
impl Forget for ResolvedShellPreferences
impl Freeze for ResolvedShellPreferences
impl RefUnwindSafe for ResolvedShellPreferences
impl Send for ResolvedShellPreferences
impl Sync for ResolvedShellPreferences
impl Unpin for ResolvedShellPreferences
impl UnsafeUnpin for ResolvedShellPreferences
impl UnwindSafe for ResolvedShellPreferences
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more