pub struct TooltipStyle {
pub background: Color,
pub text_color: Color,
pub radius: f32,
pub font_size: f32,
pub pad_h: f32,
pub elevation: f32,
}Expand description
Theme-driven tooltip appearance (D115/Phase 32). Set once on the theme
via rosace_theme::ThemeData::with_ext and every .tooltip(..) /
Tooltip in the app picks it up — shape, colors, font, padding all
come from here, with a sensible default when the theme sets none. Same
type-keyed extension mechanism CursorStyle uses (D105).
Fields§
§background: Color§text_color: Color§radius: f32§font_size: f32§pad_h: f32Horizontal padding inside the bubble; vertical padding is derived from the font size so the label always sits centered.
elevation: f32Drop-shadow strength; 0.0 disables it.
Trait Implementations§
Source§impl Clone for TooltipStyle
impl Clone for TooltipStyle
Source§fn clone(&self) -> TooltipStyle
fn clone(&self) -> TooltipStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TooltipStyle
Source§impl Debug for TooltipStyle
impl Debug for TooltipStyle
Auto Trait Implementations§
impl Freeze for TooltipStyle
impl RefUnwindSafe for TooltipStyle
impl Send for TooltipStyle
impl Sync for TooltipStyle
impl Unpin for TooltipStyle
impl UnsafeUnpin for TooltipStyle
impl UnwindSafe for TooltipStyle
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