Changeset 246341 in webkit


Ignore:
Timestamp:
Jun 11, 2019 4:55:18 PM (5 years ago)
Author:
timothy@apple.com
Message:

Scrollbar can show as white on white in dark mode on iOS.
https://bugs.webkit.org/show_bug.cgi?id=198772
rdar://problem/51516743

Reviewed by Tim Horton.

  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _updateScrollViewBackground]): Use UIScrollViewIndicatorStyleBlack instead
of UIScrollViewIndicatorStyleDefault to prevent getting a white scrollbar in dark mode.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r246331 r246341  
     12019-06-11  Timothy Hatcher  <timothy@apple.com>
     2
     3        Scrollbar can show as white on white in dark mode on iOS.
     4        https://bugs.webkit.org/show_bug.cgi?id=198772
     5        rdar://problem/51516743
     6
     7        Reviewed by Tim Horton.
     8
     9        * UIProcess/API/Cocoa/WKWebView.mm:
     10        (-[WKWebView _updateScrollViewBackground]): Use UIScrollViewIndicatorStyleBlack instead
     11        of UIScrollViewIndicatorStyleDefault to prevent getting a white scrollbar in dark mode.
     12
    1132019-06-11  Michael Catanzaro  <mcatanzaro@igalia.com>
    214
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm

    r246300 r246341  
    17371737        [_scrollView setIndicatorStyle:UIScrollViewIndicatorStyleWhite];
    17381738    else
    1739         [_scrollView setIndicatorStyle:UIScrollViewIndicatorStyleDefault];
     1739        [_scrollView setIndicatorStyle:UIScrollViewIndicatorStyleBlack];
    17401740}
    17411741
Note: See TracChangeset for help on using the changeset viewer.