Merge manage remotes and popular remotes window

This commit is contained in:
heliguy
2023-12-09 05:55:58 -05:00
parent 755490f515
commit 77ffca3bd7
6 changed files with 76 additions and 189 deletions

View File

@@ -1,59 +0,0 @@
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;
}
}
}
}
}
};
}
}

View File

@@ -9,12 +9,6 @@ template RemotesWindow: Adw.Window {
Adw.ToolbarView main_toolbar_view {
[top]
HeaderBar header_bar {
Button add_button {
Adw.ButtonContent {
label: _("Add Remote");
icon-name: "plus-large-symbolic";
}
}
}
content: Adw.ToastOverlay toast_overlay {
@@ -33,6 +27,7 @@ template RemotesWindow: Adw.Window {
}
Adw.PreferencesGroup popular_remotes_list {
title: _("Add a Popular Remote");
visible: false;
}
Adw.PreferencesGroup manual_remotes_list {
title: _("Add Other Remotes");