pub struct SysSettings {
pub dark: Option<bool>,
pub accent: Option<u32>,
pub high_contrast: bool,
pub contrast_colors: Option<HcColors>,
pub reduce_motion: bool,
pub text_scale: u32,
pub double_click_ms: u32,
pub caret_blink_ms: u32,
pub font_aa: Option<bool>,
pub font_hinting: Option<u8>,
pub font_rgba: Option<u8>,
pub titlebar: Titlebar,
}Expand description
what the system says (see the module comment)
Fields§
§dark: Option<bool>None: no preference
accent: Option<u32>0xRRGGBB
high_contrast: bool§contrast_colors: Option<HcColors>Windows: the colours of the active high-contrast scheme
reduce_motion: bool§text_scale: u32percent, 100 = normal
double_click_ms: u32§caret_blink_ms: u32one phase of the caret (on or off); 0 = steady
font_aa: Option<bool>font smoothing: Some(false) = off (sharp black-and-white glyphs)
font_hinting: Option<u8>FONT_HINT_*
font_rgba: Option<u8>FONT_RGBA_* (subpixel smoothing and its order)
titlebar: Titlebarthe title bar the library draws (Linux client-side decorations, AF_CUSTOM_TITLEBAR)
Trait Implementations§
Source§impl Clone for SysSettings
impl Clone for SysSettings
impl Copy for SysSettings
Source§impl Debug for SysSettings
impl Debug for SysSettings
Source§impl Default for SysSettings
impl Default for SysSettings
Source§impl PartialEq for SysSettings
impl PartialEq for SysSettings
impl StructuralPartialEq for SysSettings
Auto Trait Implementations§
impl Forget for SysSettings
impl Freeze for SysSettings
impl RefUnwindSafe for SysSettings
impl Send for SysSettings
impl Sync for SysSettings
impl Unpin for SysSettings
impl UnsafeUnpin for SysSettings
impl UnwindSafe for SysSettings
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