using Gtk 4.0; using Adw 1; template $GnomeframeWindow: Adw.ApplicationWindow { default-width: 800; default-height: 600; title: "Gnomeframe"; 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 Gnomeframe"); action: "app.about"; } } }