mirror of
https://github.com/13hannes11/toolbx-tuner.git
synced 2024-09-03 23:21:00 +02:00
add app dialogue concept
This commit is contained in:
@@ -16,24 +16,26 @@ impl Widgets<AppModel, ()> for AppWidgets {
|
||||
main_window = adw::ApplicationWindow {
|
||||
set_default_width: 800,
|
||||
set_default_height: 600,
|
||||
|
||||
set_content: main_box = Some(>k::Box) {
|
||||
set_content : main_box = Some(>k::Box) {
|
||||
set_orientation: gtk::Orientation::Vertical,
|
||||
|
||||
append = &adw::HeaderBar {
|
||||
set_title_widget = Some(>k::Label) {
|
||||
set_label: "Toolbox Tuner",
|
||||
}
|
||||
},
|
||||
|
||||
append = >k::ListBox {
|
||||
set_selection_mode: SelectionMode::None,
|
||||
set_margin_all: 30,
|
||||
set_css_classes: &["boxed-list"],
|
||||
factory!(model.toolboxes)
|
||||
append = >k::ScrolledWindow {
|
||||
set_hexpand: true,
|
||||
set_vexpand: true,
|
||||
set_child = Some(>k::ListBox) {
|
||||
set_selection_mode: SelectionMode::None,
|
||||
set_margin_all: 30,
|
||||
set_css_classes: &["boxed-list"],
|
||||
factory!(model.toolboxes)
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user