Lots of style improvements
This commit is contained in:
@@ -3,7 +3,7 @@ using Adw 1;
|
||||
|
||||
Adw.ApplicationWindow mainWindow {
|
||||
title: "Wince";
|
||||
default-width: 400;
|
||||
default-width: 600;
|
||||
default-height: 500;
|
||||
|
||||
Gtk.Box {
|
||||
@@ -15,7 +15,9 @@ Adw.ApplicationWindow mainWindow {
|
||||
orientation: horizontal;
|
||||
margin-top: 10;
|
||||
margin-start: 14;
|
||||
margin-bottom: 14;
|
||||
margin-end: 14;
|
||||
halign: center;
|
||||
|
||||
styles ["linked"]
|
||||
|
||||
@@ -30,14 +32,19 @@ Adw.ApplicationWindow mainWindow {
|
||||
}
|
||||
}
|
||||
|
||||
Gtk.ScrolledWindow {
|
||||
Gtk.ScrolledWindow scrollWindow {
|
||||
vexpand: true;
|
||||
visible: false;
|
||||
|
||||
Gtk.ListBox searchResults {
|
||||
margin-top: 14;
|
||||
margin-start: 14;
|
||||
margin-end: 14;
|
||||
}
|
||||
Gtk.ListBox searchResults {}
|
||||
}
|
||||
|
||||
Gtk.Label poweredByText {
|
||||
halign: center;
|
||||
valign: center;
|
||||
vexpand: true;
|
||||
use-markup: true;
|
||||
label: "<span foreground=\"gray\" style=\"italic\">Wince is powered by Yelp</span>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,26 +2,28 @@ 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;
|
||||
margin-start: 24;
|
||||
margin-top: 12;
|
||||
margin-bottom: 12;
|
||||
|
||||
Gtk.Label businessName {
|
||||
styles ["heading"]
|
||||
xalign: 0;
|
||||
}
|
||||
|
||||
Gtk.Label businessRating {
|
||||
xalign: 0;
|
||||
}
|
||||
Gtk.Label businessHours {
|
||||
xalign: 0;
|
||||
}
|
||||
Gtk.LinkButton businessWebsite {
|
||||
Gtk.Box {
|
||||
orientation: horizontal;
|
||||
halign: start;
|
||||
spacing: 12;
|
||||
|
||||
Gtk.Label businessOpen {
|
||||
}
|
||||
Gtk.Label businessRating {
|
||||
}
|
||||
Gtk.Label businessDistance {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user