mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
More UI tweaks
This commit is contained in:
@@ -25,11 +25,12 @@ template $FileInstallDialog : Adw.Dialog {
|
||||
margin-start: 12;
|
||||
margin-end: 12;
|
||||
margin-bottom: 12;
|
||||
margin-top: 3;
|
||||
margin-top: 6;
|
||||
Box {
|
||||
orientation: vertical;
|
||||
spacing: 12;
|
||||
Adw.PreferencesGroup packages_group {
|
||||
title: _("Review Selection");
|
||||
}
|
||||
$InstallationChooser installation_chooser {
|
||||
}
|
||||
|
||||
@@ -36,12 +36,12 @@ class FileInstallDialog(Adw.Dialog):
|
||||
if len(files) > 1:
|
||||
self.set_title(_("Install Packages"))
|
||||
# self.packages_group.set_title(_("Review Packages"))
|
||||
self.packages_group.set_title(_("The following packages will be installed"))
|
||||
self.packages_group.set_description(_("The following packages will be installed"))
|
||||
self.installation_chooser.set_content_strings(_("Packages"), True)
|
||||
else:
|
||||
self.set_title(_("Install a Package"))
|
||||
# self.packages_group.set_title(_("Review Package"))
|
||||
self.packages_group.set_title(_("The following package will be installed"))
|
||||
self.packages_group.set_description(_("The following package will be installed"))
|
||||
self.installation_chooser.set_content_strings(_("package"), False)
|
||||
|
||||
# Connections
|
||||
|
||||
@@ -68,10 +68,19 @@ template $InstallPage : Adw.BreakpointBin {
|
||||
id: "pending_page";
|
||||
}
|
||||
[bottom-bar]
|
||||
Label {
|
||||
label: _("Pending Packages");
|
||||
Box {
|
||||
margin-top: 12;
|
||||
margin-bottom: 12;
|
||||
margin-bottom: 14;
|
||||
spacing: 6;
|
||||
halign: center;
|
||||
Image {
|
||||
icon-name: "flatpak-symbolic";
|
||||
icon-size: normal;
|
||||
}
|
||||
Label {
|
||||
label: _("Pending Packages");
|
||||
styles ["heading"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,16 +34,11 @@ template $SelectPage : Adw.NavigationPage {
|
||||
}
|
||||
}
|
||||
Adw.PreferencesGroup local_group {
|
||||
title: _("Add a File");
|
||||
description: _("Install a package from a file on your system");
|
||||
Adw.ActionRow open_row {
|
||||
title: _("Open");
|
||||
subtitle: _("Add the file you want to install");
|
||||
activatable: true;
|
||||
[suffix]
|
||||
Image {
|
||||
icon-name: "folder-open-symbolic";
|
||||
}
|
||||
title: _("Add Packages");
|
||||
description: _("Install packages from files on your system");
|
||||
Adw.ButtonRow open_row {
|
||||
title: _("Open Files");
|
||||
start-icon-name: "folder-open-symbolic";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user