Bug 227834

Summary: [GTK] Support dark scrollbars
Product: WebKit Reporter: Alice Mikhaylenko <alicem>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, cgarcia, mcatanzaro
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Alice Mikhaylenko 2021-07-09 04:18:23 PDT
Scrollbars in macOS and iOS ports can change color depending on the page, using dark scrollbars on dark pages and light scrollbars on light pages. We should support that too.

See the patch.
Comment 1 Alice Mikhaylenko 2021-07-09 04:22:28 PDT
Created attachment 433207 [details]
Patch
Comment 2 Alice Mikhaylenko 2021-07-09 04:23:53 PDT
Test case: https://blog.ergaster.org/

https://webkit.org also triggers a dark scrollbar.
Comment 3 Michael Catanzaro 2021-07-09 05:04:51 PDT
Comment on attachment 433207 [details]
Patch

LGTM. Maybe Carlos Garcia might want to review this before landing, though?
Comment 4 EWS 2021-07-09 06:29:15 PDT
Committed r279782 (239549@main): <https://commits.webkit.org/239549@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 433207 [details].