[GTK] Fix logic of dark theme detection
authorpgriffis@igalia.com <pgriffis@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Sep 2019 18:04:31 +0000 (18:04 +0000)
committerpgriffis@igalia.com <pgriffis@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Sep 2019 18:04:31 +0000 (18:04 +0000)
commit3140bed2ca3d8198c6ef5ff4d5d909a650d4f5e0
tree99ffdbb83494bb6332ee371550fa345cf197f7e5
parentbba904de167bcc65e2bc6e9a72e5f6f2eb0b599b
[GTK] Fix logic of dark theme detection
https://bugs.webkit.org/show_bug.cgi?id=202276

- If GTK_THEME is set it has a higher priority to GtkSettings.
- GTK_THEME may be a -dark theme or :dark variant, handle both.

Reviewed by Michael Catanzaro.

* UIProcess/API/gtk/PageClientImpl.cpp:
(WebKit::PageClientImpl::effectiveAppearanceIsDark const):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250388 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/gtk/PageClientImpl.cpp