From 3e6dc55c7f4b08926ad431d8eef3874247fb8e66 Mon Sep 17 00:00:00 2001 From: Sonny Piers Date: Sat, 16 Mar 2024 22:25:19 +0100 Subject: [PATCH] Simplify List View Widgets --- src/List View Widgets/main.blp | 57 +++++++++++++++------------------- src/Spell Checker/main.blp | 2 +- src/Text Fields/main.blp | 4 +-- 3 files changed, 28 insertions(+), 35 deletions(-) diff --git a/src/List View Widgets/main.blp b/src/List View Widgets/main.blp index f748de86..ce9f03f0 100644 --- a/src/List View Widgets/main.blp +++ b/src/List View Widgets/main.blp @@ -64,29 +64,25 @@ Adw.StatusPage { name: "listview"; title: _("List View"); - child: Frame { + child: ScrolledWindow { + hscrollbar-policy: never; + propagate-natural-height: true; + has-frame: true; valign: start; - ScrolledWindow { - hscrollbar-policy: never; - propagate-natural-height: true; - - ListView list_view { - enable-rubberband: true; - - factory: BuilderListItemFactory { - template ListItem { - child: Gtk.Box { - Gtk.Label { - label: bind template.item as .string; - height-request: 50; - margin-start: 12; - margin-end: 12; - } - }; - } - }; - } + ListView list_view { + factory: BuilderListItemFactory { + template ListItem { + child: Gtk.Box { + Gtk.Label { + label: bind template.item as .string; + height-request: 50; + margin-start: 12; + margin-end: 12; + } + }; + } + }; } }; } @@ -95,19 +91,16 @@ Adw.StatusPage { name: "gridview"; title: _("Grid View"); - child: Frame { + child: ScrolledWindow { + hscrollbar-policy: never; + propagate-natural-height: true; + has-frame: true; valign: start; - ScrolledWindow { - hscrollbar-policy: never; - propagate-natural-height: true; - - GridView grid_view { - orientation: vertical; - max-columns: 2; - min-columns: 2; - enable-rubberband: true; - } + GridView grid_view { + orientation: vertical; + max-columns: 2; + min-columns: 2; } }; } diff --git a/src/Spell Checker/main.blp b/src/Spell Checker/main.blp index 89323048..7a130207 100644 --- a/src/Spell Checker/main.blp +++ b/src/Spell Checker/main.blp @@ -30,7 +30,7 @@ Adw.StatusPage { LinkButton { label: _("Documentation"); - uri: "https://chergert.pages.gitlab.gnome.org/libspelling/libspelling-1/"; + uri: "https://gnome.pages.gitlab.gnome.org/libspelling/libspelling-1/"; } }; } diff --git a/src/Text Fields/main.blp b/src/Text Fields/main.blp index 50bba029..0ad76443 100644 --- a/src/Text Fields/main.blp +++ b/src/Text Fields/main.blp @@ -88,10 +88,10 @@ Adw.Clamp { } Entry entry_icon { - primary-icon-name: "about-symbolic"; + primary-icon-name: "help-about-symbolic"; primary-icon-activatable: true; primary-icon-tooltip-text: _("Click on Me"); - secondary-icon-name: "bell-symbolic"; + secondary-icon-name: "bell-outline-symbolic"; secondary-icon-tooltip-text: _("No Click on Me"); } }