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 {
}
}
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 {
maximum-size: 600;
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();
}
}
maximum-size: 500;
Stack stack {
StackPage {
name: "empty_page";
Stack stack {
StackPage {
name: "empty_page";
child: Adw.StatusPage {
icon-name: "list";
title: "No possibilities";
};
}
child: Adw.StatusPage {
icon-name: "list";
title: "No possibilities";
};
}
StackPage {
name: "list_page";
StackPage {
name: "list_page";
child: ScrolledWindow {
vexpand: true;
child: ScrolledWindow {
vexpand: true;
ListView listview {
styles ["rich-list"]
ListView listview {
styles ["rich-list"]
factory: BuilderListItemFactory {
resource: "/uk/me/bcowan/Rugby/gtk/score-item.ui";
};
model: NoSelection {
model: FilterListModel {
filter: CustomFilter try_filter {};
model: .RugbyListStore list_store {
score: bind scorespin.value;
};
items-changed => list_store_items_changed_cb();
factory: BuilderListItemFactory {
resource: "/uk/me/bcowan/Rugby/gtk/score-item.ui";
};
model: NoSelection {
model: FilterListModel {
filter: CustomFilter try_filter {};
model: .RugbyListStore list_store {
score: bind scorespin.value;
};
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