Move list view row and toggler to libcosmic

This commit is contained in:
Jeremy Soller 2022-09-30 10:20:03 -06:00
parent 8e42dc46ea
commit 5d25af14a9
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
6 changed files with 82 additions and 49 deletions

View file

@ -1,22 +1,14 @@
#[macro_export]
macro_rules! button {
($($x:expr),+ $(,)?) => (
$crate::iced::widget::Button::new(
$crate::iced::widget::Row::with_children(
vec![$($crate::iced::Element::from($x)),+]
)
.spacing(8)
)
.padding([8, 16])
);
}
pub use button;
mod button;
pub use button::*;
mod icon;
pub use self::icon::icon;
pub use self::icon::*;
mod list_view;
pub use list_view::{list_view, list_view_style};
mod list;
pub use list::*;
mod nav_bar;
pub use nav_bar::{nav_bar, nav_bar_style};
pub use nav_bar::*;
mod toggler;
pub use toggler::*;