ui cosmetic: group prev/next buttons
This commit is contained in:
parent
c975b4888a
commit
227c1ebaac
@ -52,15 +52,10 @@ impl Controls {
|
|||||||
SegmentedButton::new(text("Month"), ViewMode::Month, self.mode, Message::ViewModeSelected),
|
SegmentedButton::new(text("Month"), ViewMode::Month, self.mode, Message::ViewModeSelected),
|
||||||
SegmentedButton::new(text("Year"), ViewMode::Year, self.mode, Message::ViewModeSelected),
|
SegmentedButton::new(text("Year"), ViewMode::Year, self.mode, Message::ViewModeSelected),
|
||||||
])
|
])
|
||||||
.push(
|
.push(row![
|
||||||
Button::new(Text::new("<"))
|
Button::new(Text::new("<")).on_press(self.get_msg_prev()).style(button::secondary),
|
||||||
.on_press(self.get_msg_prev())
|
Button::new(Text::new(">")).on_press(self.get_msg_next()).style(button::secondary),
|
||||||
.style(button::secondary),
|
].spacing(0).padding(0)
|
||||||
)
|
|
||||||
.push(
|
|
||||||
Button::new(Text::new(">"))
|
|
||||||
.on_press(self.get_msg_next())
|
|
||||||
.style(button::secondary),
|
|
||||||
)
|
)
|
||||||
.push(
|
.push(
|
||||||
Text::new(description)
|
Text::new(description)
|
||||||
|
Loading…
Reference in New Issue
Block a user