Bug 226627 - [GTK] Support color-scheme
Summary: [GTK] Support color-scheme
Status: RESOLVED DUPLICATE of bug 208204
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-03 23:20 PDT by Milan Crha
Modified: 2021-07-09 05:01 PDT (History)
3 users (show)

See Also:


Attachments
a.html (152 bytes, text/html)
2021-06-03 23:20 PDT, Milan Crha
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Crha 2021-06-03 23:20:13 PDT
Created attachment 430550 [details]
a.html

Coming from a downstream bug report:
https://gitlab.gnome.org/GNOME/evolution/-/issues/1522

There are cases where form elements should be better drawn with the theme color, rather than "always light theme".

Michael also pointer to bug #197947 there.

Reproducer:

a) get the attached a.html
b) execute:

   GTK_THEME=Adwaita-dark /usr/libexec/webkit2gtk-4.0/MiniBrowser /tmp/a.html

the buttons (and the content) is in the light theme, even it would be better in the dark theme. At least the buttons.

I also tried to set content="dark" in the <meta>, but it didn't change anything (I thought it'll force the dark theme).

This is with webkit2gtk3-2.32.1-1.fc34.x86_64.
Comment 1 Michael Catanzaro 2021-06-04 06:38:59 PDT
Basically in bug #197947 we made normal web content that doesn't know about dark mode work properly, and we made web content that uses only prefers-color-scheme work properly. But we don't support color-scheme at all. I think that's HAVE(OS_DARK_MODE_SUPPORT) which was disabled in bug #197947. We probably want to bring that back.
Comment 2 Alice Mikhaylenko 2021-07-09 04:16:33 PDT
Duplicate of https://bugs.webkit.org/show_bug.cgi?id=208204?
Comment 3 Michael Catanzaro 2021-07-09 05:01:20 PDT
Yes.

*** This bug has been marked as a duplicate of bug 208204 ***