More UI tweaks

This commit is contained in:
heliguy4599
2024-10-10 00:02:36 -04:00
parent 25fd040cd7
commit 0d31918b50
4 changed files with 21 additions and 16 deletions

View File

@@ -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 {
}

View File

@@ -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

View File

@@ -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"]
}
}
}
}

View File

@@ -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";
}
}
}