Expose reusable Button logic
... and reuse it in `iced_pure`!
This commit is contained in:
parent
01c5004959
commit
ecb3df8e01
5 changed files with 228 additions and 247 deletions
|
|
@ -105,8 +105,8 @@ impl Application for Stopwatch {
|
|||
Text::new(label)
|
||||
.horizontal_alignment(alignment::Horizontal::Center),
|
||||
)
|
||||
.min_width(80)
|
||||
.padding(10)
|
||||
.width(Length::Units(80))
|
||||
.style(style)
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -726,7 +726,7 @@ fn button<'a, Message: Clone>(
|
|||
Text::new(label).horizontal_alignment(alignment::Horizontal::Center),
|
||||
)
|
||||
.padding(12)
|
||||
.min_width(100)
|
||||
.width(Length::Units(100))
|
||||
}
|
||||
|
||||
fn color_slider(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue