Broke up UI into seperate file, reorganisation of dirtree, added ViewStack
This commit is contained in:
66
data/resources/ui/window.blp
Normal file
66
data/resources/ui/window.blp
Normal file
@@ -0,0 +1,66 @@
|
||||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template $GnomeframeWindow: Adw.ApplicationWindow {
|
||||
default-width: 800;
|
||||
default-height: 600;
|
||||
title: "Gnomeframe";
|
||||
|
||||
content:
|
||||
// Scaffolding
|
||||
Adw.ToolbarView {
|
||||
// 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");
|
||||
primary: true;
|
||||
}
|
||||
title-widget:
|
||||
Adw.ViewSwitcher {
|
||||
policy: wide;
|
||||
stack: viewstack;
|
||||
};
|
||||
}
|
||||
// Main View
|
||||
content:
|
||||
Adw.ViewStack viewstack {
|
||||
|
||||
};
|
||||
[bottom]
|
||||
Adw.ViewSwitcherBar switcher_bar {
|
||||
stack: viewstack;
|
||||
}
|
||||
};
|
||||
}
|
||||
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 Gnomeframe");
|
||||
action: "app.about";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user