#[non_exhaustive]pub struct ThemeGeometry {
pub radius: Option<f32>,
pub radius_lg: Option<f32>,
pub frame_width: Option<f32>,
pub disabled_opacity: Option<f32>,
pub border_opacity: Option<f32>,
pub scroll_width: Option<f32>,
pub shadow: Option<bool>,
}Expand description
Geometric properties for UI elements.
Controls border radius, frame widths, and opacity values that vary across platform themes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.radius: Option<f32>Corner radius for rounded elements (in logical pixels).
radius_lg: Option<f32>Larger corner radius for dialogs, cards, and panels (in logical pixels).
frame_width: Option<f32>Window/widget frame border width (in logical pixels).
disabled_opacity: Option<f32>Opacity multiplier for disabled elements (0.0 = invisible, 1.0 = fully opaque).
border_opacity: Option<f32>Opacity multiplier for borders (0.0 = invisible, 1.0 = fully opaque).
scroll_width: Option<f32>Scrollbar track width (in logical pixels).
shadow: Option<bool>Whether the platform uses drop shadows on windows and popups.
Implementations§
Source§impl ThemeGeometry
impl ThemeGeometry
Trait Implementations§
Source§impl Clone for ThemeGeometry
impl Clone for ThemeGeometry
Source§fn clone(&self) -> ThemeGeometry
fn clone(&self) -> ThemeGeometry
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 ThemeGeometry
impl Debug for ThemeGeometry
Source§impl Default for ThemeGeometry
impl Default for ThemeGeometry
Source§fn default() -> ThemeGeometry
fn default() -> ThemeGeometry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThemeGeometrywhere
ThemeGeometry: Default,
impl<'de> Deserialize<'de> for ThemeGeometrywhere
ThemeGeometry: 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 ThemeGeometry
impl PartialEq for ThemeGeometry
Source§impl Serialize for ThemeGeometry
impl Serialize for ThemeGeometry
impl StructuralPartialEq for ThemeGeometry
Auto Trait Implementations§
impl Freeze for ThemeGeometry
impl RefUnwindSafe for ThemeGeometry
impl Send for ThemeGeometry
impl Sync for ThemeGeometry
impl Unpin for ThemeGeometry
impl UnsafeUnpin for ThemeGeometry
impl UnwindSafe for ThemeGeometry
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