Move implementations from example to libcosmic
This commit is contained in:
parent
699e474427
commit
5ad54bd3b1
13 changed files with 162 additions and 122 deletions
22
src/widget/mod.rs
Normal file
22
src/widget/mod.rs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#[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 icon;
|
||||
pub use self::icon::icon;
|
||||
|
||||
mod list_view;
|
||||
pub use list_view::list_view_style;
|
||||
|
||||
mod nav_bar;
|
||||
pub use nav_bar::nav_bar_style;
|
||||
Loading…
Add table
Add a link
Reference in a new issue