mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Use type syntax introduced in blueprint 0.8.0 (#77)
Co-authored-by: Hari Rana <theevilskeleton@riseup.net>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
59
data/ui/popular_remotes.blp
Normal file
59
data/ui/popular_remotes.blp
Normal file
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user