Files
wince/data/ui/main.blp

83 lines
1.5 KiB
Plaintext

using Gtk 4.0;
using Adw 1;
Adw.ApplicationWindow mainWindow {
title: "Wince";
default-width: 700;
default-height: 500;
Gtk.Box {
orientation: vertical;
Adw.HeaderBar {}
Gtk.Box {
orientation: horizontal;
margin-top: 10;
margin-start: 14;
margin-bottom: 14;
margin-end: 14;
halign: center;
styles ["linked"]
Gtk.Entry searchEntry {
placeholder-text: "Search";
}
Gtk.Entry locationEntry {
placeholder-text: "Location";
}
Gtk.Button searchButton {
icon-name: "edit-find";
}
}
Gtk.Label poweredByText {
halign: center;
valign: center;
vexpand: true;
label: "Wince is powered by Yelp";
}
Adw.Leaflet leaflet {
visible: false;
Gtk.ScrolledWindow scrollWindow {
vexpand: true;
width-request: 300;
Gtk.ListBox searchResults {}
}
Gtk.Label seeDetailsText {
label: "Select a result to see details";
hexpand: true;
halign: center;
}
Gtk.Box detailsBox {
orientation: vertical;
margin-start: 14;
Gtk.Label detailsTitle {
halign: start;
styles ["title-1"]
}
Gtk.Box {
orientation: horizontal;
spacing: 12;
Gtk.Label detailsIsOpen {
halign: start;
}
Gtk.Label detailsCurrentHours {
halign: start;
}
}
}
}
}
}