Added clamp to make larger windows look better
This commit is contained in:
110
data/ui/main.blp
110
data/ui/main.blp
@@ -1,5 +1,6 @@
|
||||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
using Shumate 1.0;
|
||||
|
||||
Adw.ApplicationWindow mainWindow {
|
||||
title: "Wince";
|
||||
@@ -27,6 +28,9 @@ Adw.ApplicationWindow mainWindow {
|
||||
Gtk.Entry locationEntry {
|
||||
placeholder-text: "Location";
|
||||
}
|
||||
Gtk.Button geolocateButton {
|
||||
icon-name: "find-location";
|
||||
}
|
||||
Gtk.Button searchButton {
|
||||
icon-name: "edit-find";
|
||||
}
|
||||
@@ -51,62 +55,72 @@ Adw.ApplicationWindow mainWindow {
|
||||
Gtk.ListBox searchResults {}
|
||||
}
|
||||
|
||||
Gtk.Box detailsBox {
|
||||
orientation: vertical;
|
||||
visible: false;
|
||||
margin-start: 14;
|
||||
margin-end: 14;
|
||||
Adw.Clamp {
|
||||
maximum-size: 450;
|
||||
tightening-threshold: 400;
|
||||
|
||||
Gtk.Label detailsTitle {
|
||||
halign: start;
|
||||
styles ["title-1"]
|
||||
}
|
||||
|
||||
Gtk.Box {
|
||||
orientation: horizontal;
|
||||
spacing: 12;
|
||||
|
||||
Gtk.Label detailsIsOpen {
|
||||
halign: start;
|
||||
}
|
||||
|
||||
Gtk.Label detailsCurrentHours {
|
||||
halign: start;
|
||||
}
|
||||
|
||||
Gtk.Label detailsPricing {
|
||||
halign: start;
|
||||
}
|
||||
}
|
||||
|
||||
Gtk.ListBox {
|
||||
styles ["boxed-list"]
|
||||
selection-mode: none;
|
||||
margin-top: 8;
|
||||
Gtk.Label seeDetailsText {
|
||||
hexpand: true;
|
||||
label: "Select a result to see details";
|
||||
}
|
||||
|
||||
Gtk.ListBoxRow {
|
||||
Gtk.Label detailsAddress {
|
||||
Gtk.Box detailsBox {
|
||||
orientation: vertical;
|
||||
visible: false;
|
||||
margin-start: 14;
|
||||
margin-end: 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;
|
||||
}
|
||||
|
||||
Gtk.Label detailsPricing {
|
||||
halign: start;
|
||||
margin-start: 12;
|
||||
margin-top: 12;
|
||||
margin-bottom: 12;
|
||||
}
|
||||
}
|
||||
|
||||
Gtk.ListBoxRow {
|
||||
Gtk.Label detailsPhone {
|
||||
halign: start;
|
||||
margin-start: 12;
|
||||
margin-top: 12;
|
||||
margin-bottom: 12;
|
||||
}
|
||||
}
|
||||
Gtk.ListBox {
|
||||
styles ["boxed-list"]
|
||||
selection-mode: none;
|
||||
margin-top: 8;
|
||||
hexpand: true;
|
||||
|
||||
Gtk.ListBoxRow {
|
||||
Gtk.LinkButton detailsUrl {
|
||||
label: "View on yelp";
|
||||
halign: start;
|
||||
Gtk.ListBoxRow {
|
||||
Gtk.Label detailsAddress {
|
||||
halign: start;
|
||||
margin-start: 12;
|
||||
margin-top: 12;
|
||||
margin-bottom: 12;
|
||||
}
|
||||
}
|
||||
|
||||
Gtk.ListBoxRow {
|
||||
Gtk.Label detailsPhone {
|
||||
halign: start;
|
||||
margin-start: 12;
|
||||
margin-top: 12;
|
||||
margin-bottom: 12;
|
||||
}
|
||||
}
|
||||
|
||||
Gtk.ListBoxRow {
|
||||
Gtk.LinkButton detailsUrl {
|
||||
label: "View on yelp";
|
||||
halign: start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user