diff options
Diffstat (limited to 'examples/editor')
-rw-r--r-- | examples/editor/src/main.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/editor/src/main.rs b/examples/editor/src/main.rs index 53c9cf7c..60a6ca5a 100644 --- a/examples/editor/src/main.rs +++ b/examples/editor/src/main.rs @@ -1,14 +1,13 @@ use iced::executor; use iced::highlighter::{self, Highlighter}; use iced::keyboard; -use iced::theme::{self, Theme}; use iced::widget::{ button, column, container, horizontal_space, pick_list, row, text, text_editor, tooltip, }; use iced::{ Alignment, Application, Command, Element, Font, Length, Settings, - Subscription, + Subscription, Theme, }; use std::ffi; @@ -287,10 +286,10 @@ fn action<'a, Message: Clone + 'a>( label, tooltip::Position::FollowCursor, ) - .style(theme::Container::Box) + .style(container::box_) .into() } else { - action.style(theme::Button::Secondary).into() + action.style(button::secondary).into() } } |