Consolodate header buttons

Remove the Refresh List button in favor of it in the main menu drop down
Remove the newly added Install Menu button in favor of it in the manin menu drop down
This commit is contained in:
heliguy
2024-02-19 03:39:16 -05:00
parent 8789c6c591
commit c230d0adc8
3 changed files with 18 additions and 33 deletions

View File

@@ -6,12 +6,6 @@ template $WarehouseWindow: Adw.ApplicationWindow {
Adw.ToolbarView main_toolbar_view {
[top]
HeaderBar header_bar {
[start]
Button refresh_button {
icon-name: "view-refresh-symbolic";
tooltip-text: _("Refresh List");
}
[start]
ToggleButton search_button {
icon-name: "system-search-symbolic";
@@ -36,13 +30,6 @@ template $WarehouseWindow: Adw.ApplicationWindow {
icon-name: "selection-mode-symbolic";
tooltip-text: _("Toggle Selection Mode");
}
[end]
MenuButton install_button {
icon-name: "plus-large-symbolic";
tooltip-text: _("Install New Flatpak");
menu-model: install_menu;
}
}
[top]
@@ -257,7 +244,23 @@ menu primary_menu {
label: _("Manage Remotes…");
action: "app.show-remotes-window";
}
}
section {
item {
label: _("Install From File…");
action: "app.install-from-file";
}
item {
label: _("Install From The Web…");
action: "app.open-search-install";
}
}
section {
item {
label: _("Refresh List");
action: "app.refresh-list";
}
item {
label: _("_Keyboard Shortcuts");
action: "win.show-help-overlay";
@@ -287,18 +290,4 @@ menu copy_menu {
action: "win.copy-refs";
}
}
}
menu install_menu {
section {
item {
label: _("Install From File…");
action: "app.install-from-file";
}
item {
label: _("Install From The Web…");
action: "app.open-search-install";
}
}
}
}