Clean up popular remotes window UI

This commit is contained in:
heliguy4599
2023-10-04 03:19:17 -04:00
parent ed853f7f77
commit 3d692e7af3
2 changed files with 22 additions and 50 deletions

View File

@@ -3,67 +3,38 @@ using Adw 1;
template PopularRemotesWindow : Adw.Window {
default-width: 450;
default-height: 550;
title: _("Add a Remote");
default-height: 613;
title: "";
Adw.ToolbarView main_toolbar_view {
[top]
HeaderBar header_bar {
// [start]
// Button refresh_button {
// icon-name: "view-refresh-symbolic";
// tooltip-text: _("Refresh the List of Installed Apps");
// }
}
content:
Adw.ToastOverlay toast_overlay {
Stack main_stack {
Box main_box {
orientation: vertical;
Overlay main_overlay {
ScrolledWindow scrolled_window {
vexpand: true;
Adw.Clamp{
Box {
orientation: vertical;
Label {
label: _("Choose from a list of popular remotes");
halign: start;
margin-start: 12;
margin-bottom: 3;
styles["title-4"]
}
ListBox list_of_remotes {
margin-top: 6;
margin-bottom: 6;
margin-start: 12;
margin-end: 12;
hexpand: true;
valign: start;
selection-mode: none;
styles["boxed-list"]
}
ListBox custom_list {
margin-top: 6;
margin-bottom: 6;
margin-start: 12;
margin-end: 12;
hexpand: true;
valign: start;
selection-mode: none;
styles["boxed-list"]
}
}
vexpand: true;
Adw.StatusPage {
valign: start;
title: _("Add a Remote");
description: _("Choose from a list of popular remotes.");
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.StatusPage no_data {
icon-name: "check-plain-symbolic";
title: _("No Leftover Data");
description: _("There is no leftover user data");
}
}
};
}
}

View File

@@ -174,6 +174,7 @@ class PopularRemotesWindow(Adw.Window):
super().__init__(**kwargs)
self.my_utils = myUtils(self)
self.parent_window = parent_window
self.set_size_request(260, 230)
self.new_env = dict( os.environ )
self.new_env['LC_ALL'] = 'C'