<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>6.0.0-beta.11</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS 10.14.5</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>6.0.0-beta.10</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">systemPreferences.isDarkMode()</code> should return <code class="notranslate">true</code> when the system is in dark mode.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><code class="notranslate">systemPreferences.isDarkMode()</code> always returns <code class="notranslate">false</code>.</p>
<h3 dir="auto">To Reproduce</h3>
<ul dir="auto">
<li>Open Electron</li>
<li>Open Developer Tools Console</li>
<li>Execute the following commands:
<ul dir="auto">
<li><code class="notranslate">const electron = require('electron');</code></li>
<li><code class="notranslate">electron.remote.systemPreferences.isDarkMode();</code></li>
</ul>
</li>
<li>Observe that the return value is <code class="notranslate">false</code> even if the system is in Dark Mode.</li>
</ul>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1566516/60308594-7f596600-9941-11e9-8b4c-5cb59df9bd0b.png"><img width="872" alt="Screenshot 2019-06-28 at 01 10 04" src="https://user-images.githubusercontent.com/1566516/60308594-7f596600-9941-11e9-8b4c-5cb59df9bd0b.png" style="max-width: 100%;"></a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I believe this bug was probably introduced in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="460005006" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/18958" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/18958/hovercard" href="https://github.com/electron/electron/pull/18958">#18958</a>.</p>
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>5.0.6</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS 10.15 Developer Beta 2 (19A487l)</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>5.0.x (worked before Catalina)</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">systemPreferences.isDarkMode</code> on macOS 10.15 Catalina should report whether it's in dark mode or not, even when set to Auto Mode (based on time of day). Electron 5.0.6 fixed some of the issues from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="458932394" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/18913" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/18913/hovercard" href="https://github.com/electron/electron/issues/18913">#18913</a> , but isn't working correctly.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><code class="notranslate">systemPreferences.isDarkMode</code> is always reporting to be false.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Repository: <a href="https://github.com/hyperspacedev/hyperspace">https://github.com/hyperspacedev/hyperspace</a></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/hyperspacedev/hyperspace -b catalina-vibrancy
$ npm install
$ npm run electrify"><pre class="notranslate">$ git clone https://github.com/hyperspacedev/hyperspace -b catalina-vibrancy
$ npm install
$ npm run electrify</pre></div>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13445064/60265918-e7ae3600-98b4-11e9-8519-6a114ff52790.png"><img width="1440" alt="Screen Shot 2019-06-27 at 08 23 18" src="https://user-images.githubusercontent.com/13445064/60265918-e7ae3600-98b4-11e9-8519-6a114ff52790.png" style="max-width: 100%;"></a></p>
Dark mode reports to be `false` here and is expected because it's in light mode.
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13445064/60265936-f5fc5200-98b4-11e9-98f7-caba828f9e2a.png"><img width="1440" alt="Screen Shot 2019-06-27 at 08 23 33" src="https://user-images.githubusercontent.com/13445064/60265936-f5fc5200-98b4-11e9-98f7-caba828f9e2a.png" style="max-width: 100%;"></a></p>
Dark mode reports to be `false` here as well since, at the time of Auto Mode, it shouldn't be in dark mode.
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13445064/60265976-0b717c00-98b5-11e9-8d5a-6a7b7ee50c58.png"><img width="1440" alt="Screen Shot 2019-06-27 at 08 23 25" src="https://user-images.githubusercontent.com/13445064/60265976-0b717c00-98b5-11e9-8d5a-6a7b7ee50c58.png" style="max-width: 100%;"></a></p>
However, dark mode reports to be `false` here, even though that isn't true.
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I speculate that the name of the dark appearance might have changed.</p>