Split template files. Added full hours support
This commit is contained in:
27
data/ui/templates/businessrow.blp
Normal file
27
data/ui/templates/businessrow.blp
Normal file
@@ -0,0 +1,27 @@
|
||||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template Wince-BusinessRow : Gtk.ListBoxRow {
|
||||
Gtk.Box {
|
||||
orientation: vertical;
|
||||
margin-start: 24;
|
||||
margin-top: 12;
|
||||
margin-bottom: 12;
|
||||
|
||||
Gtk.Label businessName {
|
||||
styles ["heading"]
|
||||
xalign: 0;
|
||||
}
|
||||
|
||||
Gtk.Box {
|
||||
orientation: horizontal;
|
||||
halign: start;
|
||||
spacing: 12;
|
||||
|
||||
Gtk.Label businessRating {
|
||||
}
|
||||
Gtk.Label businessDistance {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
22
data/ui/templates/hourrow.blp
Normal file
22
data/ui/templates/hourrow.blp
Normal file
@@ -0,0 +1,22 @@
|
||||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template Wince-HourRow : Gtk.ListBoxRow {
|
||||
Gtk.Box {
|
||||
orientation: horizontal;
|
||||
margin-start: 12;
|
||||
margin-end: 12;
|
||||
margin-top: 12;
|
||||
margin-bottom: 12;
|
||||
hexpand: true;
|
||||
|
||||
Gtk.Label dayOfWeek {
|
||||
halign: start;
|
||||
}
|
||||
|
||||
Gtk.Label hours {
|
||||
halign: end;
|
||||
hexpand: true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user