summaryrefslogtreecommitdiffstats
path: root/examples/checkbox/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/checkbox/src/main.rs')
-rw-r--r--examples/checkbox/src/main.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/checkbox/src/main.rs b/examples/checkbox/src/main.rs
index 834a8f5c..121c99ea 100644
--- a/examples/checkbox/src/main.rs
+++ b/examples/checkbox/src/main.rs
@@ -1,6 +1,5 @@
use iced::executor;
use iced::font::{self, Font};
-use iced::theme;
use iced::widget::{checkbox, column, container, row, text};
use iced::{Application, Command, Element, Length, Settings, Theme};
@@ -71,10 +70,10 @@ impl Application for Example {
};
let checkboxes = row![
- styled_checkbox("Primary", theme::Checkbox::Primary),
- styled_checkbox("Secondary", theme::Checkbox::Secondary),
- styled_checkbox("Success", theme::Checkbox::Success),
- styled_checkbox("Danger", theme::Checkbox::Danger),
+ styled_checkbox("Primary", checkbox::primary),
+ styled_checkbox("Secondary", checkbox::secondary),
+ styled_checkbox("Success", checkbox::success),
+ styled_checkbox("Danger", checkbox::danger),
]
.spacing(20);