mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-05-02 11:17:22 +00:00
e412a2c537
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>
48 lines
1.2 KiB
Text
48 lines
1.2 KiB
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template GradienceResetPresetGroup : Adw.PreferencesGroup {
|
|
title: _("Reset & 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"]
|
|
}
|
|
}
|
|
}
|