Use cosmic toggler instead of iced
This commit is contained in:
parent
3f113016c5
commit
4ba38dc25d
2 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use cosmic::{
|
||||
Element,
|
||||
iced::widget::{column, text, toggler},
|
||||
widget::{list_column, settings},
|
||||
iced::widget::{column, text},
|
||||
widget::{list_column, settings, toggler},
|
||||
};
|
||||
use super::{Message, Page, Window};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
use cosmic::{
|
||||
Element,
|
||||
iced::{Alignment, Length},
|
||||
iced::widget::{checkbox, pick_list, progress_bar, radio, row, slider, toggler},
|
||||
widget::{button, settings},
|
||||
iced::widget::{checkbox, pick_list, progress_bar, radio, row, slider},
|
||||
widget::{button, settings, toggler},
|
||||
theme::{Button as ButtonTheme, Theme},
|
||||
};
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ impl Window {
|
|||
.add(settings::item("Debug theme", choose_theme))
|
||||
.add(settings::item(
|
||||
"Debug layout",
|
||||
toggler(String::from("Debug layout"), self.debug, Message::Debug)
|
||||
toggler(None, self.debug, Message::Debug)
|
||||
))
|
||||
.into(),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue