[Webkit-unassigned] [Bug 197947] New: [GTK] Should use light theme unless website declares support for dark themes in color-schemes property
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 16 06:56:04 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=197947
Bug ID: 197947
Summary: [GTK] Should use light theme unless website declares
support for dark themes in color-schemes property
Product: WebKit
Version: WebKit Nightly Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at igalia.com
CC: bugs-noreply at webkitgtk.org
Currently the web breaks pretty badly when users use a dark GTK theme. We should follow macOS in restricting dark theme usage to websites that have declared support for it using the color-scheme CSS property, as documented in https://webkit.org/blog/8840/dark-mode-support-in-webkit/.
This is not possible to do perfectly because GTK does not have any concept of dark vs. light themes, so we'll have to use heuristics. We can attempt to switch from a dark theme to light theme by default, e.g. by pruning -dark or :dark off the name of the GTK theme and hoping for the best. Then we can switch back to the dark theme variant only if used on websites that really support dark mode.
If we cannot switch like this due to performance considerations, then it's better to always try to prune the -dark portion of the theme name and use a light theme, because dark themes will never be web-compatible except for websites that opt-in.
--
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/20190516/193a8882/attachment.html>
More information about the webkit-unassigned
mailing list