<ul dir="auto">
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: 3.0.2</li>
<li>Operating System (Platform and Version): macOS 10.14</li>
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable):</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
There should be no grey line rendered at the top of the window area in frameless window.</p>
<p dir="auto">My conclusion is that Electron uses some obscure combination of window styles that cause this behaviour. I was able to reproduce the same appearance when using Cocoa API in the same fashion on a sample Xcode project.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
On macOS Mojave the grey line is rendered at the top of the window area even when the contents are transparent and the window is configured to be frameless.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Fork and run <a href="https://github.com/pronebird/electron-mojave-titlebar-bug">https://github.com/pronebird/electron-mojave-titlebar-bug</a></p>
<p dir="auto">If you provide a URL, please list the commands required to clone/setup/run your repo e.g.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/pronebird/electron-mojave-titlebar-bug.git
$ npm install
$ npm start"><pre class="notranslate">$ git clone https://github.com/pronebird/electron-mojave-titlebar-bug.git
$ npm install
$ npm start</pre></div>
<p dir="auto"><strong>Screenshots</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/704044/46583008-2b73bd80-ca50-11e8-8b52-0a7a9b514798.png"><img width="363" alt="screenshot 2018-10-07 at 16 43 14" src="https://user-images.githubusercontent.com/704044/46583008-2b73bd80-ca50-11e8-8b52-0a7a9b514798.png" style="max-width: 100%;"></a></p>
<p dir="auto">( The dark background is the standard wallpaper on Mojave)</p>
<p dir="auto"><strong>Additional Information</strong><br>
Add any other context about the problem here.</p>
<ul dir="auto">
<li>Electron Version: ???</li>
<li>Operating System (Platform and Version): macOS 10.14 Mojave</li>
<li>Last known working Electron version: ???</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
No white lines</p>
<p dir="auto"><strong>Actual behavior</strong><br>
There is a thin white line at the top border of Discord</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Download Discord and run.</p>
<p dir="auto"><strong>Screenshots</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4723091/41010254-329960e0-68eb-11e8-9c92-a62f3dd2006c.png"><img src="https://user-images.githubusercontent.com/4723091/41010254-329960e0-68eb-11e8-9c92-a62f3dd2006c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Additional Information</strong><br>
May be related to dark theme.</p>
<hr>
<p dir="auto">I am aware macOS Mojave is not exactly accessible to everyone yet, but I'm reporting this just in case.</p>