2023-05-04 13:24:18 +00:00
using Gtk 4.0;
using Adw 1;
2023-08-15 21:57:56 +00:00
template $GradienceShellThemingGroup : Adw.PreferencesGroup {
2023-05-04 13:24:18 +00:00
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-08-15 21:57:56 +00:00
clicked => $on_apply_button_clicked();
2023-05-04 13:24:18 +00:00
styles ["suggested-action"]
}
Adw.ActionRow custom-colors-row {
title: _("Customize Shell Theme");
2023-06-26 18:52:04 +00:00
activatable-widget: custom-colors-button;
2023-05-04 13:24:18 +00:00
[suffix]
Button custom-colors-button {
valign: center;
label: _("Open Shell Preferences");
2023-08-15 21:57:56 +00:00
clicked => $on_custom_colors_button_clicked();
2023-05-04 13:24:18 +00:00
}
}
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");
2023-08-15 21:57:56 +00:00
clicked => $on_restore_button_clicked();
2023-05-04 13:24:18 +00:00
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-08-15 21:57:56 +00:00
clicked => $on_reset_theme_clicked();
2023-05-04 13:24:18 +00:00
styles ["destructive-action"]
}
}