Gradience/src/ui/presets_manager_window.blp

68 lines
1.8 KiB
Text
Raw Normal View History

2022-08-15 13:40:21 +00:00
using Gtk 4.0;
using Adw 1;
2022-08-19 19:14:05 +00:00
template GradiencePresetWindow: Adw.Window {
2022-08-15 13:40:21 +00:00
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";
}
}
2022-08-20 02:07:31 +00:00
Gtk.Box {
orientation: vertical;
2022-08-15 13:40:21 +00:00
2022-08-20 02:07:31 +00:00
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;
2022-08-15 13:40:21 +00:00
}
}
}
2022-08-20 02:07:31 +00:00
}