mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-02 16:17:53 +00:00
fe2047e7d6
* open self.settings object to other files * create new item in main-menu menu: Preferences
32 lines
No EOL
1.2 KiB
Text
32 lines
No EOL
1.2 KiB
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template GradiencePreferencesWindow : Adw.PreferencesWindow {
|
|
title: _("Preferences");
|
|
default-height: 460;
|
|
default-width: 600;
|
|
modal: true;
|
|
|
|
Adw.PreferencesPage {
|
|
Adw.PreferencesGroup flatpak_group {
|
|
title: _("Flatpak Specific");
|
|
Adw.ActionRow {
|
|
title: _("Allow Flatpak theming");
|
|
subtitle: _("Override Flatpak permissions for current user to allow Flatpak applications to access custom themes.");
|
|
activatable-widget: allow_flatpak_theming_user;
|
|
Gtk.Switch allow_flatpak_theming_user {
|
|
valign: center;
|
|
}
|
|
}
|
|
Adw.ActionRow {
|
|
visible: false;
|
|
title: _("Allow Flatpak theming (Global)");
|
|
subtitle: _("Override Flatpak permissions for all users to allow Flatpak applications to access custom themes. (Requires root access)");
|
|
activatable-widget: allow_flatpak_theming_global;
|
|
Gtk.Switch allow_flatpak_theming_global {
|
|
valign: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |