Skip to content
Snippets Groups Projects
Verified Commit 2218da1c authored by Bruce Cowan's avatar Bruce Cowan :airplane:
Browse files

UI hierarchy reorganisation

parent 687167e1
No related branches found
No related tags found
No related merge requests found
...@@ -36,66 +36,62 @@ template RugbyAppWindow : Adw.ApplicationWindow { ...@@ -36,66 +36,62 @@ template RugbyAppWindow : Adw.ApplicationWindow {
} }
} }
Revealer {
halign: center;
margin-top: 6;
reveal-child: bind filter_toggle.active;
transition-type: swing_down;
SpinButton tryspin {
adjustment: Adjustment {
step-increment: 1;
lower: 0;
upper: 40;
};
focusable: true;
tooltip-text: "Tries";
value-changed => try_spin_value_changed_cb();
}
}
Adw.Clamp { Adw.Clamp {
maximum-size: 600; maximum-size: 500;
Box {
orientation: vertical;
Revealer {
halign: center;
margin-top: 6;
reveal-child: bind filter_toggle.active;
transition-type: swing_down;
SpinButton tryspin {
adjustment: Adjustment {
step-increment: 1;
lower: 0;
upper: 40;
};
focusable: true;
tooltip-text: "Tries";
value-changed => try_spin_value_changed_cb();
}
}
Stack stack { Stack stack {
StackPage { StackPage {
name: "empty_page"; name: "empty_page";
child: Adw.StatusPage { child: Adw.StatusPage {
icon-name: "list"; icon-name: "list";
title: "No possibilities"; title: "No possibilities";
}; };
} }
StackPage { StackPage {
name: "list_page"; name: "list_page";
child: ScrolledWindow { child: ScrolledWindow {
vexpand: true; vexpand: true;
ListView listview { ListView listview {
styles ["rich-list"] styles ["rich-list"]
factory: BuilderListItemFactory { factory: BuilderListItemFactory {
resource: "/uk/me/bcowan/Rugby/gtk/score-item.ui"; resource: "/uk/me/bcowan/Rugby/gtk/score-item.ui";
}; };
model: NoSelection { model: NoSelection {
model: FilterListModel { model: FilterListModel {
filter: CustomFilter try_filter {}; filter: CustomFilter try_filter {};
model: .RugbyListStore list_store { model: .RugbyListStore list_store {
score: bind scorespin.value; score: bind scorespin.value;
};
items-changed => list_store_items_changed_cb();
}; };
items-changed => list_store_items_changed_cb();
}; };
} };
}; }
} };
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment