Rearrange buttons

Swap the search and refresh buttons, as well as swap the properties and trash button
This commit is contained in:
heliguy4599
2023-09-12 16:01:48 -04:00
parent 7eb07314bc
commit 9d12b34d60
2 changed files with 13 additions and 11 deletions

View File

@@ -8,17 +8,17 @@ template FlattoolGuiWindow : Adw.ApplicationWindow {
Adw.ToolbarView main_toolbar_view {
[top]
HeaderBar header_bar {
[start]
ToggleButton search_button {
icon-name: "system-search-symbolic";
tooltip-text: _("Search for an Installed App");
}
[start]
Button refresh_button {
icon-name: "view-refresh-symbolic";
tooltip-text: _("Refresh the List of Installed Apps");
}
[start]
ToggleButton search_button {
icon-name: "system-search-symbolic";
tooltip-text: _("Search for an Installed App");
}
[end]
MenuButton {

View File

@@ -515,17 +515,19 @@ class FlattoolGuiWindow(Adw.ApplicationWindow):
if (not self.show_runtimes) and "runtime" in self.host_flatpaks[index][12]:
continue
trash_button = Gtk.Button(icon_name="user-trash-symbolic", valign=Gtk.Align.CENTER, tooltip_text=_("Uninstall {}").format(app_name))
trash_button.add_css_class("flat")
trash_button.connect("clicked", self.uninstall_button_handler, index)
flatpak_row.add_suffix(trash_button)
properties_button = Gtk.Button(icon_name="info-symbolic", valign=Gtk.Align.CENTER, tooltip_text=_("View Properties"))
properties_button.add_css_class("flat")
properties_button.connect("clicked", show_properties_window, index, self)
flatpak_row.add_suffix(properties_button)
trash_button = Gtk.Button(icon_name="user-trash-symbolic", valign=Gtk.Align.CENTER, tooltip_text=_("Uninstall {}").format(app_name))
trash_button.add_css_class("flat")
trash_button.connect("clicked", self.uninstall_button_handler, index)
flatpak_row.add_suffix(trash_button)
select_flatpak_tickbox = Gtk.CheckButton(halign=Gtk.Align.CENTER)
select_flatpak_tickbox.set_margin_start(4)
select_flatpak_tickbox.set_margin_end(4)
select_flatpak_tickbox.add_css_class("flat")
select_flatpak_tickbox.connect("toggled", self.flatpak_row_select_handler, index)
flatpak_row.add_suffix(select_flatpak_tickbox)