Gradience/data/ui/shell_theming_group.blp

83 lines
1.9 KiB
Text

using Gtk 4.0;
using Adw 1;
template $GradienceShellThemingGroup: Adw.PreferencesGroup {
title: _("Shell Engine");
description: _("Generates GNOME Shell theme based on current preset.\nWARNING: Extensions that modify the Shell stylesheet may cause issues with themes.");
// TODO: Fix the warning being under shell-theming-expander
Label {
label: "Warning: Extensions that modify the Shell stylesheet may cause issues with themes";
halign: start;
styles [
"dim-label",
"warning"
]
}
Adw.ExpanderRow shell-theming-expander {
title: _("Shell Engine Options");
subtitle: _("Change the generated GNOME Shell theme");
expanded: true;
[action]
Button shell-apply-button {
valign: center;
label: _("Apply");
tooltip-text: _("Apply Shell theme");
clicked => $on_apply_button_clicked();
styles [
"suggested-action"
]
}
Adw.ActionRow custom-colors-row {
title: _("Customize Shell Theme");
activatable-widget: custom-colors-button;
[suffix]
Button custom-colors-button {
valign: center;
label: _("Open Shell Preferences");
clicked => $on_custom_colors_button_clicked();
}
}
Adw.ComboRow variant-row {
title: _("Preset Variant");
subtitle: _("Select currently applied preset variant");
}
}
}
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");
tooltip-text: _("Reset applied theme");
clicked => $on_reset_theme_clicked();
styles [
"destructive-action"
]
}
}