mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
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:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user