Can load some basic business info from YELP

This commit is contained in:
2022-12-18 00:34:47 -08:00
parent 00814dd7e4
commit 5e2e9e2752
11 changed files with 151 additions and 8 deletions

View File

@@ -29,5 +29,15 @@ Adw.ApplicationWindow mainWindow {
icon-name: "edit-find";
}
}
Gtk.ScrolledWindow {
vexpand: true;
Gtk.ListBox searchResults {
margin-top: 14;
margin-start: 14;
margin-end: 14;
}
}
}
}
}

27
data/ui/templates.blp Normal file
View File

@@ -0,0 +1,27 @@
using Gtk 4.0;
using Adw 1;
template Wince-BusinessRow : Gtk.ListBoxRow {
styles ["card"]
margin-bottom: 14;
Gtk.Box {
orientation: vertical;
margin-start: 8;
margin-top: 8;
Gtk.Label businessName {
styles ["heading"]
xalign: 0;
}
Gtk.Label businessRating {
xalign: 0;
}
Gtk.Label businessHours {
xalign: 0;
}
Gtk.LinkButton businessWebsite {
halign: start;
}
}
}

View File

@@ -2,5 +2,6 @@
<gresources>
<gresource prefix="/wince">
<file compressed="true" preprocess="xml-stripblanks">ui/compiled/main.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/compiled/templates.ui</file>
</gresource>
</gresources>