Files
VoidManifest/data/resources/ui/window.blp
2025-12-06 00:56:28 +01:00

74 lines
1.4 KiB
Plaintext

using Gtk 4.0;
using Adw 1;
template $VoidmanifestWindow: Adw.ApplicationWindow {
default-width: 800;
default-height: 600;
title: "Void Manifest";
content:
// Scaffolding
Adw.ToolbarView {
bottom-bar-style: raised;
// Header bar
[top]
Adw.HeaderBar {
[start]
Button btn_save_as {
tooltip-text: _("Save as…");
icon-name: "floppy-symbolic";
}
[end]
MenuButton {
icon-name: "open-menu-symbolic";
menu-model: primary_menu;
tooltip-text: _("Main Menu");
has-tooltip: true;
primary: true;
}
title-widget:
Adw.ViewSwitcher {
policy: wide;
stack: viewstack;
};
}
// Main View
content:
Adw.ViewStack viewstack {
};
[bottom]
ActionBar {
[center]
Button btn_reset_profile {
label: _("Reset");
tooltip-text: _("Reset Profile");
has-tooltip: true;
}
}
};
}
menu primary_menu {
section {
item {
label: _("_Preferences");
action: "app.preferences";
}
item {
label: _("_Keyboard Shortcuts");
action: "win.show-help-overlay";
}
item {
label: _("_Help");
action: "app.help";
}
item {
label: _("_About Void Manifest");
action: "app.about";
}
}
}