2023-05-04 13:24:18 +00:00
using Gtk 4.0;
using Adw 1;
template GradienceShellThemingGroup : Adw.PreferencesGroup {
title: _("Shell Engine");
2023-06-20 16:34:17 +00:00
description: _("Shell Engine generates a custom GNOME Shell theme based on the currently selected preset.\nWARNING: Extensions that modify the Shell stylesheet may cause issues with themes.");
2023-05-04 13:24:18 +00:00
Adw.ExpanderRow shell-theming-expander {
title: _("Shell Engine Options");
2023-06-20 16:34:17 +00:00
subtitle: _("Change the generated GNOME Shell theme");
2023-05-04 13:24:18 +00:00
expanded: true;
[action]
Button shell-apply-button {
valign: center;
label: _("Apply");
2023-06-20 16:34:17 +00:00
tooltip-text: _("Apply Shell theme");
2023-05-04 13:24:18 +00:00
clicked => on_apply_button_clicked();
styles ["suggested-action"]
}
Adw.ActionRow custom-colors-row {
title: _("Customize Shell Theme");
[suffix]
Button custom-colors-button {
valign: center;
label: _("Open Shell Preferences");
clicked => on_custom_colors_button_clicked();
}
}
Adw.ComboRow variant-row {
title: _("Preset Variant");
2023-06-20 16:34:17 +00:00
subtitle: _("Select currently applied preset variant");
2023-05-04 13:24:18 +00:00
}
}
}
Adw.ActionRow other-options-row {
[prefix]
Button restore_libadw_button {
valign: center;
icon-name: "edit-undo-symbolic";
sensitive: false;
//tooltip-text: _("Restore Previous Theme");
tooltip-text: _("Currently unavailable");
clicked => on_restore_button_clicked();
styles ["flat"]
}
[suffix]
Button reset_theme_button {
valign: center;
label: _("Reset Theme");
2023-06-20 16:34:17 +00:00
tooltip-text: _("Reset applied theme");
2023-05-04 13:24:18 +00:00
clicked => on_reset_theme_clicked();
styles ["destructive-action"]
}
}