ui cosmetic: group prev/next buttons

This commit is contained in:
Fabrizio Iannetti 2024-05-13 07:23:34 +02:00
parent c975b4888a
commit 227c1ebaac

View File

@ -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)