mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-07-09 20:17:49 +00:00
Signed-off-by: salarua <104225819+salarua@users.noreply.github.com> Signed-off-by: David Lapshin <ddaudix@gmail.com> Co-authored-by: 0xMRTT <0xMRTT@proton.me> Co-authored-by: tfuxu <73042332+tfuxu@users.noreply.github.com> Co-authored-by: David Lapshin <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 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"]
|
|
}
|
|
}
|
|
}
|