using Gtk 4.0; using Adw 1; template GradiencePresetWindow: Adw.Window { deletable: true; default-width: 550; default-height: 550; Adw.ToastOverlay toast_overlay { Gtk.Box main_view { orientation: vertical; Adw.HeaderBar titlebar { centering-policy: strict; [title] Adw.WindowTitle { title: _("Presets"); } [start] Button import-button { styles ["suggested-action"] label: _("Import"); action-name: "app.import_preset"; } [end] Button { icon-name: "folder-open-symbolic"; action-name: "app.open_preset_directory"; } } Gtk.Box { orientation: vertical; Adw.ViewStack view_stack { vexpand: true; hexpand: true; Adw.ViewStackPage { name: "manage"; title: _("Manage"); icon-name: "larger-brush-symbolic"; child: Adw.PreferencesPage content { }; } Adw.ViewStackPage { name: "explore"; title: _("Explore"); icon-name: "applications-science-symbolic"; child: Adw.PreferencesPage content_explore { }; } } } Adw.ViewSwitcherBar { stack: view_stack; reveal: bind title.title-visible; } } } }