Can load some basic business info from YELP
This commit is contained in:
@@ -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
27
data/ui/templates.blp
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user