RESOLVED FIXED 199104
[GTK] Navigation gesture should use dark fallback bg color on dark themes
https://bugs.webkit.org/show_bug.cgi?id=199104
Summary [GTK] Navigation gesture should use dark fallback bg color on dark themes
Alice Mikhaylenko
Reported 2019-06-21 01:55:17 PDT
See the patch.
Attachments
Patch (1.96 KB, patch)
2019-06-21 01:56 PDT, Alice Mikhaylenko
no flags
Archive of layout-test-results from ews211 for win-future (13.79 MB, application/zip)
2019-06-21 05:43 PDT, EWS Watchlist
no flags
Patch (1.94 KB, patch)
2019-06-21 07:51 PDT, Alice Mikhaylenko
no flags
Alice Mikhaylenko
Comment 1 2019-06-21 01:56:05 PDT
EWS Watchlist
Comment 2 2019-06-21 05:43:25 PDT Comment hidden (spam)
EWS Watchlist
Comment 3 2019-06-21 05:43:28 PDT Comment hidden (spam)
Michael Catanzaro
Comment 4 2019-06-21 07:03:17 PDT
Comment on attachment 372621 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=372621&action=review > Source/WebKit/UIProcess/gtk/ViewGestureControllerGtk.cpp:322 > + gtk_style_context_lookup_color(context, "theme_base_color", &color); Is this an Adwaita-ism? What happens if the theme doesn't have a theme_base_color? Will the GdkRGBA contain uninitialized memory? Do we need a fallback?
Alice Mikhaylenko
Comment 5 2019-06-21 07:06:19 PDT
Good question. It is listed as a public color, and elementary also has it (I tested on that one too specifically). But worth to double-check, agree.
Michael Catanzaro
Comment 6 2019-06-21 07:22:27 PDT
Better add a fallback if there's any possibility the GdkRGBA could be uninitialized.
Alice Mikhaylenko
Comment 7 2019-06-21 07:51:53 PDT
Alice Mikhaylenko
Comment 8 2019-06-21 07:53:09 PDT
(In reply to Michael Catanzaro from comment #6) > Better add a fallback if there's any possibility the GdkRGBA could be > uninitialized. Yeah, agree. Realistically, `win32` theme may be missing it.
WebKit Commit Bot
Comment 9 2019-06-24 07:34:53 PDT
Comment on attachment 372629 [details] Patch Clearing flags on attachment: 372629 Committed r246732: <https://trac.webkit.org/changeset/246732>
WebKit Commit Bot
Comment 10 2019-06-24 07:34:55 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.