Files
warehouse/src/main_window/window.blp
2024-07-17 16:40:47 -04:00

183 lines
6.4 KiB
Plaintext

using Gtk 4.0;
using Adw 1;
template $WarehouseWindow: Adw.ApplicationWindow {
title: "Warehouse";
// default-width: 240;
default-width: 865;
width-request: 400;
height-request: 360;
Adw.Breakpoint main_breakpoint {
condition ("min-width: 865")
setters {
main_split.collapsed: false;
main_split.max-sidebar-width: 999999999;
}
}
content:
Adw.OverlaySplitView main_split {
collapsed: true;
show-sidebar: true;
sidebar-width-fraction: 0.2;
// max-sidebar-width: 280;
min-sidebar-width: 250;
sidebar:
Adw.NavigationPage {
title: "Warehouse";
Adw.ToolbarView main_toolbar_view {
[top]
Adw.HeaderBar header_bar {
[start]
Button refresh_button {
icon-name: "arrow-circular-top-right-symbolic";
tooltip-text: _("Refresh List");
}
[end]
MenuButton main_menu {
icon-name: "open-menu-symbolic";
tooltip-text: _("Main Menu");
menu-model: primary_menu;
}
}
content:
ScrolledWindow {
ListBox navigation_row_listbox {
styles ["navigation-sidebar"]
Box packages_row {
margin-top: 12;
margin-bottom: 12;
margin-start: 6;
margin-end: 6;
spacing: 12;
Image icon {
icon-name: "flatpak-symbolic";
}
Label {
label: _("Packages");
}
}
Box remotes_row {
margin-top: 12;
margin-bottom: 12;
margin-start: 6;
margin-end: 6;
spacing: 12;
Image {
icon-name: "server-pick-symbolic";
}
Label {
label: _("Remotes");
}
}
Box user_data_row {
margin-top: 12;
margin-bottom: 12;
margin-start: 6;
margin-end: 6;
spacing: 12;
Image {
icon-name: "file-manager-symbolic";
}
Label {
label: _("User Data");
}
}
Box snapshots_row {
margin-top: 12;
margin-bottom: 12;
margin-start: 6;
margin-end: 6;
spacing: 12;
Image {
icon-name: "snapshots-alt-symbolic";
}
Label {
label: _("Snapshots");
}
}
Box install_row {
margin-top: 12;
margin-bottom: 12;
margin-start: 6;
margin-end: 6;
spacing: 12;
Image {
icon-name: "arrow-pointing-at-line-down-symbolic";
}
Label {
label: _("Install Packages");
}
}
}
}
;
}
}
;
content:
Stack stack {
}
;
}
;
}
menu primary_menu {
section {
item {
label: _("Manage Leftover Data…");
action: "app.manage-data-folders";
}
/*item {
label: _("_Preferences");
action: "app.preferences";
}*/
item {
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";
}
item {
label: _("_About Warehouse");
action: "app.about";
}
}
}