Force WKTR to use the light appearance
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jul 2018 00:44:24 +0000 (00:44 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jul 2018 00:44:24 +0000 (00:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=187572
<rdar://problem/42097805>

Reviewed by Simon Fraser.

Set the NSAppearance on the NSWindow to light mode.

* WebKitTestRunner/mac/PlatformWebViewMac.mm:
(WTR::PlatformWebView::PlatformWebView): Use the Aqua appearance.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233748 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/WebKitTestRunner/mac/PlatformWebViewMac.mm

index 9d80580..3ddf852 100644 (file)
@@ -1,3 +1,16 @@
+2018-07-11  Dean Jackson  <dino@apple.com>
+
+        Force WKTR to use the light appearance
+        https://bugs.webkit.org/show_bug.cgi?id=187572
+        <rdar://problem/42097805>
+
+        Reviewed by Simon Fraser.
+
+        Set the NSAppearance on the NSWindow to light mode.
+
+        * WebKitTestRunner/mac/PlatformWebViewMac.mm:
+        (WTR::PlatformWebView::PlatformWebView): Use the Aqua appearance.
+
 2018-07-11  Alex Christensen  <achristensen@webkit.org>
 
         Reduce size of WebCore::URL
index 115cf03..82e2d03 100644 (file)
@@ -149,6 +149,7 @@ PlatformWebView::PlatformWebView(WKWebViewConfiguration* configuration, const Te
     m_window = [[WebKitTestRunnerWindow alloc] initWithContentRect:windowRect styleMask:NSWindowStyleMaskBorderless backing:(NSBackingStoreType)_NSBackingStoreUnbuffered defer:YES];
     m_window.platformWebView = this;
     [m_window setColorSpace:[firstScreen colorSpace]];
+    [m_window setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]];
     [m_window setCollectionBehavior:NSWindowCollectionBehaviorStationary];
     [[m_window contentView] addSubview:m_view];
     if (m_options.shouldShowWebView)