pub struct WindowTheme {
pub background: Option<Rgba>,
pub foreground: Option<Rgba>,
pub border: Option<Rgba>,
pub title_bar_background: Option<Rgba>,
pub title_bar_foreground: Option<Rgba>,
pub inactive_title_bar_background: Option<Rgba>,
pub inactive_title_bar_foreground: Option<Rgba>,
pub radius: Option<f32>,
pub shadow: Option<bool>,
pub title_bar_font: Option<FontSpec>,
}Expand description
Window chrome: background, title bar colors, inactive states, geometry.
Fields§
§background: Option<Rgba>Main window background fill.
foreground: Option<Rgba>Default text color on the window background.
border: Option<Rgba>Window border color.
title_bar_background: Option<Rgba>Active title bar background fill.
title_bar_foreground: Option<Rgba>Active title bar text color.
inactive_title_bar_background: Option<Rgba>Title bar background when the window is unfocused.
inactive_title_bar_foreground: Option<Rgba>Title bar text color when the window is unfocused.
radius: Option<f32>Corner radius in logical pixels.
shadow: Option<bool>Whether the window has a drop shadow.
title_bar_font: Option<FontSpec>Title bar font specification.
Implementations§
Source§impl WindowTheme
impl WindowTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.
Source§impl WindowTheme
impl WindowTheme
Trait Implementations§
Source§impl Clone for WindowTheme
impl Clone for WindowTheme
Source§fn clone(&self) -> WindowTheme
fn clone(&self) -> WindowTheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowTheme
impl Debug for WindowTheme
Source§impl Default for WindowTheme
impl Default for WindowTheme
Source§fn default() -> WindowTheme
fn default() -> WindowTheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WindowThemewhere
WindowTheme: Default,
impl<'de> Deserialize<'de> for WindowThemewhere
WindowTheme: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WindowTheme
impl PartialEq for WindowTheme
Source§impl Serialize for WindowTheme
impl Serialize for WindowTheme
impl StructuralPartialEq for WindowTheme
Auto Trait Implementations§
impl Freeze for WindowTheme
impl RefUnwindSafe for WindowTheme
impl Send for WindowTheme
impl Sync for WindowTheme
impl Unpin for WindowTheme
impl UnsafeUnpin for WindowTheme
impl UnwindSafe for WindowTheme
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