diff options
Diffstat (limited to '')
| -rw-r--r-- | examples/tour/src/main.rs | 55 |
1 files changed, 5 insertions, 50 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 257a4def..13bcd5ff 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -1,15 +1,11 @@ -use iced::gradient; +use iced::alignment; use iced::theme; -use iced::theme::Palette; use iced::widget::{ checkbox, column, container, horizontal_space, image, radio, row, scrollable, slider, text, text_input, toggler, vertical_space, }; use iced::widget::{Button, Column, Container, Slider}; -use iced::{alignment, widget, Theme}; -use iced::{ - Color, Degrees, Element, Font, Length, Radians, Renderer, Sandbox, Settings, -}; +use iced::{Color, Element, Font, Length, Renderer, Sandbox, Settings}; pub fn main() -> iced::Result { env_logger::init(); @@ -59,18 +55,15 @@ impl Sandbox for Tour { controls = controls.push( button("Back") .on_press(Message::BackPressed) - .style(theme::Button::custom(CustomButtonStyle::Secondary)), + .style(theme::Button::Secondary), ); } controls = controls.push(horizontal_space(Length::Fill)); if steps.can_continue() { - controls = controls.push( - button("Next") - .on_press(Message::NextPressed) - .style(theme::Button::custom(CustomButtonStyle::Primary)), - ); + controls = + controls.push(button("Next").on_press(Message::NextPressed)); } let content: Element<_> = column