Gradience/data/ui/reset_preset_group.blp
tfuxu e412a2c537
GNOME Shell theming support (#679)
Signed-off-by: tfuxu <73042332+tfuxu@users.noreply.github.com>
Co-authored-by: 0xMRTT <0xMRTT@evta.fr>
Co-authored-by: 0xMRTT <0xMRTT@proton.me>
Co-authored-by: daudix-UFO <ddaudix@gmail.com>
2023-05-04 13:24:18 +00:00

48 lines
1.2 KiB
Text

using Gtk 4.0;
using Adw 1;
template GradienceResetPresetGroup : Adw.PreferencesGroup {
title: _("Reset &amp; Restore Presets");
description: _("This section allows you to reset an 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"]
}
}
}