2022-08-31 17:57:47 +00:00
|
|
|
using Gtk 4.0;
|
|
|
|
using Adw 1;
|
|
|
|
|
|
|
|
template GradiencePreferencesWindow : Adw.PreferencesWindow {
|
2022-10-01 17:09:55 +00:00
|
|
|
title: _("Preferences");
|
|
|
|
default-height: 400;
|
|
|
|
default-width: 600;
|
|
|
|
modal: true;
|
2022-08-31 17:57:47 +00:00
|
|
|
|
2022-10-01 17:09:55 +00:00
|
|
|
Adw.PreferencesPage {
|
|
|
|
Adw.PreferencesGroup flatpak_group {
|
2022-10-08 00:26:29 +00:00
|
|
|
title: _("GTK 4 Flatpak Applications");
|
2022-10-01 17:09:55 +00:00
|
|
|
|
|
|
|
Adw.ActionRow {
|
2022-10-08 00:26:29 +00:00
|
|
|
title: _("Allow GTK 4 Flatpak Applications Theming");
|
|
|
|
subtitle: _("Override Flatpak permissions for current user to allow GTK 4 Flatpak applications to access custom themes.");
|
2022-10-01 17:09:55 +00:00
|
|
|
activatable-widget: allow_gtk4_flatpak_theming_user;
|
|
|
|
Gtk.Switch allow_gtk4_flatpak_theming_user {
|
|
|
|
valign: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Adw.ActionRow {
|
|
|
|
visible: false;
|
2022-10-08 00:26:29 +00:00
|
|
|
title: _("Allow GTK 4 Flatpak Applications Theming (System)");
|
|
|
|
subtitle: _("Override Flatpak permissions for all users to allow GTK 4 Flatpak applications to access custom themes. (Requires root access)");
|
2022-10-01 17:09:55 +00:00
|
|
|
activatable-widget: allow_gtk4_flatpak_theming_global;
|
|
|
|
Gtk.Switch allow_gtk4_flatpak_theming_global {
|
|
|
|
valign: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Adw.PreferencesGroup gtk3_flatpak_group {
|
2022-10-08 00:26:29 +00:00
|
|
|
title: _("GTK 3 Flatpak Applications");
|
|
|
|
description: _("Remember to install adw-gtk3 theme (as a Flatpak package) in order to get custom presets working in GTK 3 Flatpak applications.");
|
2022-10-01 17:09:55 +00:00
|
|
|
|
|
|
|
Adw.ActionRow {
|
2022-10-08 00:26:29 +00:00
|
|
|
title: _("Allow GTK 3 Flatpak theming");
|
|
|
|
subtitle: _("Override Flatpak permissions for current user to allow GTK 3 Flatpak applications to access adw-gtk3 theme.");
|
2022-10-01 17:09:55 +00:00
|
|
|
activatable-widget: allow_gtk3_flatpak_theming_user;
|
|
|
|
Gtk.Switch allow_gtk3_flatpak_theming_user {
|
|
|
|
valign: center;
|
2022-08-31 17:57:47 +00:00
|
|
|
}
|
2022-10-01 17:09:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Adw.ActionRow {
|
|
|
|
visible: false;
|
2022-10-08 00:26:29 +00:00
|
|
|
title: _("GTK 3 Flatpak Applications (System)");
|
|
|
|
subtitle: _("Override Flatpak permissions for all users to allow GTK 3 Flatpak applications to access adw-gtk3 theme. (Requires root access)");
|
2022-10-01 17:09:55 +00:00
|
|
|
activatable-widget: allow_gtk3_flatpak_theming_global;
|
|
|
|
Gtk.Switch allow_gtk3_flatpak_theming_global {
|
|
|
|
valign: center;
|
2022-09-03 20:47:45 +00:00
|
|
|
}
|
2022-10-01 17:09:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Adw.PreferencesGroup custom_repository_group {
|
|
|
|
visible: false;
|
|
|
|
title: _("Custom Preset Repositories");
|
|
|
|
|
|
|
|
Adw.ActionRow {
|
|
|
|
title: _("Custom repository URL address");
|
|
|
|
|
|
|
|
Gtk.Box {
|
|
|
|
styles ["linked"]
|
|
|
|
orientation: horizontal;
|
2022-09-03 20:47:45 +00:00
|
|
|
|
2022-10-01 17:09:55 +00:00
|
|
|
Gtk.Entry custom_repository_entry {
|
|
|
|
valign: center;
|
|
|
|
}
|
2022-09-03 20:47:45 +00:00
|
|
|
|
2022-10-01 17:09:55 +00:00
|
|
|
Gtk.Button custom_repository_apply {
|
|
|
|
valign: center;
|
|
|
|
icon-name: "checkmark-large-symbolic";
|
|
|
|
}
|
2022-09-03 20:47:45 +00:00
|
|
|
}
|
2022-10-01 17:09:55 +00:00
|
|
|
}
|
2022-08-31 17:57:47 +00:00
|
|
|
}
|
2022-10-01 17:09:55 +00:00
|
|
|
}
|
2022-09-25 12:40:10 +00:00
|
|
|
}
|