mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
138 lines
3.3 KiB
Plaintext
138 lines
3.3 KiB
Plaintext
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template WarehouseWindow : Adw.ApplicationWindow {
|
|
default-width: 800;
|
|
default-height: 500;
|
|
|
|
Adw.ToolbarView main_toolbar_view {
|
|
[top]
|
|
HeaderBar header_bar {
|
|
[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 {
|
|
icon-name: "open-menu-symbolic";
|
|
tooltip-text: _("Main Menu");
|
|
menu-model: primary_menu;
|
|
}
|
|
|
|
[end]
|
|
ToggleButton batch_mode_button {
|
|
icon-name: "selection-mode-symbolic";
|
|
tooltip-text: _("Toggle Selection Mode");
|
|
}
|
|
}
|
|
[top]
|
|
SearchBar search_bar {
|
|
search-mode-enabled: bind-property search_button.active bidirectional;
|
|
key-capture-widget: WarehouseWindow;
|
|
Adw.Clamp{
|
|
maximum-size: 577;
|
|
hexpand: true;
|
|
SearchEntry search_entry {}
|
|
}
|
|
}
|
|
content:
|
|
Adw.ToastOverlay toast_overlay {
|
|
Stack main_stack {
|
|
Box main_box {
|
|
orientation: vertical;
|
|
Overlay main_overlay {
|
|
ScrolledWindow scrolled_window {
|
|
vexpand: true;
|
|
Adw.Clamp{
|
|
ListBox list_of_flatpaks{
|
|
margin-top: 6;
|
|
margin-bottom: 24;
|
|
margin-start: 12;
|
|
margin-end: 12;
|
|
hexpand: true;
|
|
valign: start;
|
|
selection-mode: none;
|
|
styles["boxed-list"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Adw.StatusPage no_flatpaks {
|
|
icon-name: "error-symbolic";
|
|
title: _("No Flatpaks Found");
|
|
description: _("Warehouse cannot see the list of installed Flatpaks or the system has no Flatpaks installed.");
|
|
}
|
|
}
|
|
};
|
|
[bottom]
|
|
ActionBar batch_mode_bar {
|
|
[start]
|
|
ToggleButton batch_select_all_button {
|
|
label: "Select All";
|
|
tooltip-text: _("Select all Flatpaks");
|
|
}
|
|
[end]
|
|
Button batch_uninstall_button {
|
|
icon-name: "user-trash-symbolic";
|
|
// label: _("Uninstall");
|
|
tooltip-text: _("Uninstall Selected Apps");
|
|
}
|
|
[end]
|
|
Button batch_clean_button {
|
|
icon-name: "brush-symbolic";
|
|
// label: _("Trash User Data");
|
|
tooltip-text: _("Send Selected Apps' Data to the Trash");
|
|
}
|
|
[end]
|
|
Button batch_copy_button {
|
|
icon-name: "edit-copy-symbolic";
|
|
// label: _("Copy App ID");
|
|
tooltip-text: _("Copy Selected App IDs");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
menu primary_menu {
|
|
section {
|
|
item {
|
|
label: _("Show Flatpak Runtimes");
|
|
action: "app.show-runtimes";
|
|
}
|
|
|
|
item {
|
|
label: _("Manage Orphaned Data Folders");
|
|
action: "app.manage-data-folders";
|
|
}
|
|
|
|
/*item {
|
|
label: _("_Preferences");
|
|
action: "app.preferences";
|
|
}*/
|
|
|
|
item {
|
|
label: _("Manage Flatpak Remotes");
|
|
action: "app.show-remotes-window";
|
|
}
|
|
|
|
item {
|
|
label: _("_Keyboard Shortcuts");
|
|
action: "win.show-help-overlay";
|
|
}
|
|
|
|
item {
|
|
label: _("_About Warehouse");
|
|
action: "app.about";
|
|
}
|
|
}
|
|
}
|