pub struct LayoutTheme {
pub widget_gap: Option<f32>,
pub container_margin: Option<f32>,
pub window_margin: Option<f32>,
pub section_gap: Option<f32>,
}Expand description
Layout spacing constants shared between light and dark variants.
Unlike other widget themes, LayoutTheme lives on crate::ThemeSpec (top-level)
rather than crate::ThemeVariant because spacing is variant-independent.
Fields§
§widget_gap: Option<f32>Space between adjacent widgets in logical pixels.
container_margin: Option<f32>Padding inside containers in logical pixels.
window_margin: Option<f32>Padding inside the main window in logical pixels.
section_gap: Option<f32>Space between major content sections in logical pixels.
Implementations§
Source§impl LayoutTheme
impl LayoutTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.
Source§impl LayoutTheme
impl LayoutTheme
Trait Implementations§
Source§impl Clone for LayoutTheme
impl Clone for LayoutTheme
Source§fn clone(&self) -> LayoutTheme
fn clone(&self) -> LayoutTheme
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 LayoutTheme
impl Debug for LayoutTheme
Source§impl Default for LayoutTheme
impl Default for LayoutTheme
Source§fn default() -> LayoutTheme
fn default() -> LayoutTheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayoutThemewhere
LayoutTheme: Default,
impl<'de> Deserialize<'de> for LayoutThemewhere
LayoutTheme: 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 LayoutTheme
impl PartialEq for LayoutTheme
Source§impl Serialize for LayoutTheme
impl Serialize for LayoutTheme
impl StructuralPartialEq for LayoutTheme
Auto Trait Implementations§
impl Freeze for LayoutTheme
impl RefUnwindSafe for LayoutTheme
impl Send for LayoutTheme
impl Sync for LayoutTheme
impl Unpin for LayoutTheme
impl UnsafeUnpin for LayoutTheme
impl UnwindSafe for LayoutTheme
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