mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Clean up popular remotes window UI
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user