diff --git a/src/main.rs b/src/main.rs index a4a81c5..5e62ad3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,6 +37,7 @@ enum AppMsg { impl Widgets for ToolboxSettingsDialogWidgets { view! { adw::PreferencesWindow { + set_title: Some("Preferences: "), set_transient_for: parent!{Some(&parent_widgets.main_window)}, set_modal: true, set_visible: watch!(!model.hidden), @@ -46,21 +47,51 @@ impl Widgets for ToolboxSettingsDialogWidg }, add = &adw::PreferencesPage { add = &adw::PreferencesGroup { - set_title: "Group", + set_title: "Update", add = &adw::PreferencesRow { - set_title: "RowSearchable", + set_title: "Updates", set_child = Some(&adw::ActionRow) { - set_title: "Test", - set_subtitle: "additional information", + set_title: "Update automatically", add_suffix = >k::Box { append = >k::Switch { set_margin_all: 15, - set_tooltip_text: Some("Use global settings"), + set_tooltip_text: Some("Update applications automatically"), }, } - }, - - } + }, + }, + }, + add = &adw::PreferencesGroup { + set_title: "Home Folder", + add = &adw::PreferencesRow { + set_title: "Seperate Home Folder", + set_child = Some(&adw::ActionRow) { + set_title: "Use separate home folder", + add_suffix = >k::Box { + append = >k::Switch { + set_margin_all: 15, + set_tooltip_text: Some("Use separate home folder"), + }, + } + }, + }, + add = &adw::PreferencesRow { + set_title: "Home Folder Path", + set_child = Some(&adw::ActionRow) { + set_title: "Home folder path", + add_suffix = >k::Box { + set_margin_all: 15, + add_css_class: "linked", + append = >k::Entry { + set_hexpand: true, + }, + append = >k::Button { + + } + } + }, + }, + } } }