Skip to content

Commit 2bcecce

Browse files
committed
Replacing a 'checkbox' with a 'toggler' widget
1 parent b135204 commit 2bcecce

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/ui/view/settings.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use iced::{
99
Alignment::Center,
1010
Element, Length,
1111
widget::{
12-
button, checkbox, column, container, horizontal_rule, row, text, tooltip, vertical_space,
12+
button, column, container, horizontal_rule, row, text, toggler, tooltip, vertical_space,
1313
},
1414
};
1515

@@ -24,7 +24,8 @@ impl TimeKeeper {
2424
.spacing(5)
2525
.align_y(Center),
2626
txt_tooltip(
27-
checkbox("Уведомления", self.conf.desktop_notifications)
27+
toggler(self.conf.desktop_notifications)
28+
.label("Уведомления")
2829
.on_toggle(Message::NotificationsToggled),
2930
"Если установлен флажок, то TimeKeeper будет отсылать \
3031
уведомления на рабочий стол. Если флажок не стоит, \

0 commit comments

Comments
 (0)