Move list view row and toggler to libcosmic
This commit is contained in:
parent
8e42dc46ea
commit
5d25af14a9
6 changed files with 82 additions and 49 deletions
13
src/widget/button.rs
Normal file
13
src/widget/button.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#[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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue