mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-09-12 23:52:32 +00:00
82 lines
1.8 KiB
Text
82 lines
1.8 KiB
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template GradiencePresetWindow : Adw.Window {
|
|
title: _("Presets");
|
|
default-width: 600;
|
|
default-height: 400;
|
|
|
|
Adw.ToastOverlay toast_overlay {
|
|
Adw.Leaflet leaflet {
|
|
can-navigate-back: true;
|
|
can-unfold: false;
|
|
|
|
Gtk.Box main_view {
|
|
orientation: vertical;
|
|
|
|
Adw.HeaderBar titlebar {
|
|
centering-policy: strict;
|
|
|
|
[start]
|
|
Button import_button {
|
|
styles ["suggested-action"]
|
|
label: _("Import");
|
|
}
|
|
|
|
[start]
|
|
Button remove_button {
|
|
styles ["danger"]
|
|
label: _("Delete");
|
|
visible: false;
|
|
}
|
|
|
|
[title]
|
|
Adw.ViewSwitcherTitle title {
|
|
stack: view_stack;
|
|
}
|
|
|
|
[end]
|
|
Button file_manager_button {
|
|
tooltip-text: _("Open in file manager");
|
|
clicked => on_file_manager_button_clicked();
|
|
Adw.ButtonContent {
|
|
icon-name: "folder-symbolic";
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
Gtk.Box {
|
|
orientation: vertical;
|
|
|
|
Adw.ViewStack view_stack {
|
|
vexpand: true;
|
|
hexpand: true;
|
|
|
|
Adw.ViewStackPage {
|
|
name: "installed";
|
|
title: _("Installed");
|
|
icon-name: "larger-brush-symbolic";
|
|
|
|
child: Adw.PreferencesPage installed { };
|
|
|
|
}
|
|
|
|
Adw.ViewStackPage {
|
|
name: "explore";
|
|
title: _("Explore");
|
|
icon-name: "web-browser-symbolic";
|
|
|
|
child: Adw.PreferencesPage explore { };
|
|
}
|
|
}
|
|
|
|
Adw.ViewSwitcherBar {
|
|
stack: view_stack;
|
|
reveal: bind title.title-visible;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|