Changeset 233181 in webkit


Ignore:
Timestamp:
Jun 25, 2018 4:40:52 PM (6 years ago)
Author:
timothy_horton@apple.com
Message:

WKThumbnailView fallback background is blindingly bright in Dark Mode
https://bugs.webkit.org/show_bug.cgi?id=187017
<rdar://problem/41036209>

Reviewed by Simon Fraser.

  • UIProcess/API/Cocoa/_WKThumbnailView.mm:

(-[_WKThumbnailView initWithFrame:]):
(-[_WKThumbnailView wantsUpdateLayer]):
(-[_WKThumbnailView updateLayer]):
Use a semantic color for the WKThumbnailView background color
instead of flat white.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r233180 r233181  
     12018-06-25  Tim Horton  <timothy_horton@apple.com>
     2
     3        WKThumbnailView fallback background is blindingly bright in Dark Mode
     4        https://bugs.webkit.org/show_bug.cgi?id=187017
     5        <rdar://problem/41036209>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * UIProcess/API/Cocoa/_WKThumbnailView.mm:
     10        (-[_WKThumbnailView initWithFrame:]):
     11        (-[_WKThumbnailView wantsUpdateLayer]):
     12        (-[_WKThumbnailView updateLayer]):
     13        Use a semantic color for the WKThumbnailView background color
     14        instead of flat white.
     15
    1162018-06-25  John Wilander  <wilander@apple.com>
    217
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKThumbnailView.mm

    r232520 r233181  
    7171
    7272    self.wantsLayer = YES;
    73     self.layer.backgroundColor = [NSColor whiteColor].CGColor;
    7473    _scale = 1;
    7574    _lastSnapshotScale = NAN;
     
    102101   
    103102    return self;
     103}
     104
     105- (BOOL)wantsUpdateLayer
     106{
     107    return YES;
     108}
     109
     110- (void)updateLayer
     111{
     112    [super updateLayer];
     113
     114    self.layer.backgroundColor = [NSColor quaternaryLabelColor].CGColor;
    104115}
    105116
Note: See TracChangeset for help on using the changeset viewer.