chore: use theme::spacing() where applicable

This commit is contained in:
Vukašin Vojinović 2025-04-01 21:13:52 +02:00 committed by Michael Murphy
parent 227f7a76b1
commit 1486569481
12 changed files with 22 additions and 26 deletions

View file

@ -18,7 +18,7 @@
//!
//! const REPOSITORY: &str = "https://github.com/pop-os/libcosmic";
//!
//! let cosmic_theme::Spacing { space_xxs, .. } = theme::active().cosmic().spacing;
//! let cosmic_theme::Spacing { space_xxs, .. } = theme::spacing();
//!
//! let link = widget::button::link(REPOSITORY)
//! .on_press(Message::LaunchUrl(REPOSITORY))
@ -364,7 +364,7 @@ pub mod tooltip {
tooltip: impl Into<Element<'a, Message>>,
position: Position,
) -> Tooltip<'a, Message> {
let xxs = crate::theme::active().cosmic().space_xxs();
let xxs = crate::theme::spacing().space_xxs;
Tooltip::new(content, tooltip, position)
.class(crate::theme::Container::Tooltip)