[Webkit-unassigned] [Bug 254135] [GTK] User contrast preference for high contrast not reflected in prefers-contrast CSS media query

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 9 12:09:49 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=254135

--- Comment #13 from Michael Catanzaro <mcatanzaro at redhat.com> ---
(In reply to Alice Mikhaylenko from comment #12)
> One thing you can do without having to load libadwaita is: when
> AdwApplication is used, you can get the application, access the
> style-manager property, access the high-contrast property. That can be done
> in runtime, without linking or dlopening anything.

Oh wow, so this works because it's GObjects all the way down? That's actually a really cool idea.

We'd have to make sure the property actually exists before trying to get it using g_object_get(), to avoid criticals if the property doesn't exist, but I think that can be done by using G_OBJECT_GET_CLASS() then g_object_class_find_property().

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230509/301374ac/attachment.htm>


More information about the webkit-unassigned mailing list