Gradience/data/ui/reset_preset_group.blp
tfuxu 50e38bc198
chore: update UI definitions to Blueprint 0.8.0 syntax
* update `blueprint-compiler` in release Flatpak manifest to 0.10.0
2023-08-15 23:58:35 +02:00

48 lines
1.2 KiB
Text

using Gtk 4.0;
using Adw 1;
template $GradienceResetPresetGroup : Adw.PreferencesGroup {
title: _("Reset and Restore Presets");
description: _("Reset a currently applied preset or restore the previous one.");
Adw.ActionRow {
title: _("Libadwaita and GTK 4 Applications");
Button restore_libadw_button {
valign: center;
icon-name: "edit-undo-symbolic";
tooltip-text: _("Restore Previous Preset");
clicked => $on_libadw_restore_button_clicked();
styles ["flat"]
}
Button reset_libadw_button {
valign: center;
label: _("Reset");
tooltip-text: _("Reset Applied Preset");
clicked => $on_libadw_reset_button_clicked();
styles ["destructive-action"]
}
}
Adw.ActionRow {
title: _("GTK 3 Applications");
Button restore_gtk3_button {
valign: center;
icon-name: "edit-undo-symbolic";
tooltip-text: _("Restore Previous Preset");
clicked => $on_gtk3_restore_button_clicked();
styles ["flat"]
}
Button reset_gtk3_button {
valign: center;
label: _("Reset");
tooltip-text: _("Reset Applied Preset");
clicked => $on_gtk3_reset_button_clicked();
styles ["destructive-action"]
}
}
}