Changeset 233181 in webkit
- Timestamp:
- Jun 25, 2018 4:40:52 PM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r233180 r233181 1 2018-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 1 16 2018-06-25 John Wilander <wilander@apple.com> 2 17 -
trunk/Source/WebKit/UIProcess/API/Cocoa/_WKThumbnailView.mm
r232520 r233181 71 71 72 72 self.wantsLayer = YES; 73 self.layer.backgroundColor = [NSColor whiteColor].CGColor;74 73 _scale = 1; 75 74 _lastSnapshotScale = NAN; … … 102 101 103 102 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; 104 115 } 105 116
Note: See TracChangeset
for help on using the changeset viewer.