portalHelper: Use libadwaita instead of plain Gtk4
This gives us the proper platform stylesheet, as well as support for dark style and other platform features. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2690>
This commit is contained in:
parent
7a4055ec92
commit
94345825a7
@ -1,9 +1,10 @@
|
|||||||
/* exported main */
|
/* exported main */
|
||||||
|
imports.gi.versions.Adw = '1';
|
||||||
imports.gi.versions.Gtk = '4.0';
|
imports.gi.versions.Gtk = '4.0';
|
||||||
imports.gi.versions.WebKit = '6.0';
|
imports.gi.versions.WebKit = '6.0';
|
||||||
|
|
||||||
const Gettext = imports.gettext;
|
const Gettext = imports.gettext;
|
||||||
const {Gio, GLib, GObject, Gtk, WebKit} = imports.gi;
|
const {Adw, Gio, GLib, GObject, Gtk, WebKit} = imports.gi;
|
||||||
|
|
||||||
const _ = Gettext.gettext;
|
const _ = Gettext.gettext;
|
||||||
|
|
||||||
@ -279,7 +280,7 @@ class PortalWindow extends Gtk.ApplicationWindow {
|
|||||||
});
|
});
|
||||||
|
|
||||||
var WebPortalHelper = GObject.registerClass(
|
var WebPortalHelper = GObject.registerClass(
|
||||||
class WebPortalHelper extends Gtk.Application {
|
class WebPortalHelper extends Adw.Application {
|
||||||
_init() {
|
_init() {
|
||||||
super._init({
|
super._init({
|
||||||
application_id: 'org.gnome.Shell.PortalHelper',
|
application_id: 'org.gnome.Shell.PortalHelper',
|
||||||
|
Loading…
Reference in New Issue
Block a user