From f34dc99cb67cab08ea463f166161a50ac883ffc4 Mon Sep 17 00:00:00 2001 From: heliguy4599 <95997226+heliguy4599@users.noreply.github.com> Date: Mon, 11 Dec 2023 21:26:06 -0500 Subject: [PATCH] Use type syntax introduced in blueprint 0.8.0 (#77) Co-authored-by: Hari Rana --- data/ui/downgrade.blp | 2 +- data/ui/filter.blp | 2 +- data/ui/popular_remotes.blp | 59 +++++++++++++++++++++++++++++++++++++ data/ui/properties.blp | 2 +- data/ui/remotes.blp | 3 +- data/ui/snapshots.blp | 2 +- 6 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 data/ui/popular_remotes.blp diff --git a/data/ui/downgrade.blp b/data/ui/downgrade.blp index 00211d3..8a1f321 100644 --- a/data/ui/downgrade.blp +++ b/data/ui/downgrade.blp @@ -1,7 +1,7 @@ using Gtk 4.0; using Adw 1; -template DowngradeWindow: Adw.Window { +template $DowngradeWindow: Adw.Window { default-width: 500; default-height: 450; modal: true; diff --git a/data/ui/filter.blp b/data/ui/filter.blp index 439f4d1..b193c72 100644 --- a/data/ui/filter.blp +++ b/data/ui/filter.blp @@ -1,7 +1,7 @@ using Gtk 4.0; using Adw 1; -template FilterWindow: Adw.Window { +template $FilterWindow: Adw.Window { default-width: 500; default-height: 450; title: _("Set Filters"); diff --git a/data/ui/popular_remotes.blp b/data/ui/popular_remotes.blp new file mode 100644 index 0000000..f3917fe --- /dev/null +++ b/data/ui/popular_remotes.blp @@ -0,0 +1,59 @@ +using Gtk 4.0; +using Adw 1; + +template $PopularRemotesWindow: Adw.Window { + default-width: 450; + default-height: 530; + title: ""; + + Adw.ToolbarView main_toolbar_view { + [top] + HeaderBar header_bar {} + + content: Adw.ToastOverlay toast_overlay { + vexpand: true; + + Adw.StatusPage { + valign: start; + title: _("Add Remote"); + description: _("Choose from a list of popular remotes or add a new one."); + + Adw.Clamp { + Box { + orientation: vertical; + + ListBox list_of_remotes { + hexpand: true; + valign: start; + selection-mode: none; + + styles [ + "boxed-list" + ] + } + + ListBox custom_list { + hexpand: true; + valign: start; + selection-mode: none; + + styles [ + "boxed-list" + ] + + Adw.ActionRow add_from_file { + title: _("Add a Repo File"); + activatable: true; + } + + Adw.ActionRow custom_remote { + title: _("Add a Custom Remote"); + activatable: true; + } + } + } + } + } + }; + } +} diff --git a/data/ui/properties.blp b/data/ui/properties.blp index 77e15b8..70957a4 100644 --- a/data/ui/properties.blp +++ b/data/ui/properties.blp @@ -1,7 +1,7 @@ using Gtk 4.0; using Adw 1; -template PropertiesWindow: Adw.Window { +template $PropertiesWindow: Adw.Window { default-width: 350; default-height: 600; modal: true; diff --git a/data/ui/remotes.blp b/data/ui/remotes.blp index 368e50b..a9afc1b 100644 --- a/data/ui/remotes.blp +++ b/data/ui/remotes.blp @@ -1,8 +1,7 @@ using Gtk 4.0; using Adw 1; -template RemotesWindow: Adw.Window { - title: _("Manage Remotes"); +template $RemotesWindow: Adw.Window { default-width: 500; default-height: 450; diff --git a/data/ui/snapshots.blp b/data/ui/snapshots.blp index e681220..f7ba0c0 100644 --- a/data/ui/snapshots.blp +++ b/data/ui/snapshots.blp @@ -1,7 +1,7 @@ using Gtk 4.0; using Adw 1; -template SnapshotsWindow: Adw.Window { +template $SnapshotsWindow: Adw.Window { default-width: 500; default-height: 455; modal: true;