Gradience/data/ui/preferences.blp
tfuxu fe2047e7d6 feat: create preferences and functions for flatpak overrides
* open self.settings object to other files
* create new item in main-menu menu: Preferences
2022-08-31 20:07:08 +02:00

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;
}
}
}
}
}