electron: titleBarStyle: hidden logs an error

  • Electron version: 1.8.2
  • Operating system: macOS 10.13.1

Expected behavior

The use of titleBarStyle: hidden should not log an error.

Actual behavior

When using titleBarStyle: hidden, the following error gets logged.

Electron[10655:980586] *** WARNING: Textured window <AtomNSWindow: 0x7fcb0f71bdb0> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.

How to reproduce

Set the titleBarStyle of the electron window to hidden.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 12
  • Comments: 21 (3 by maintainers)

Most upvoted comments

So why exactly is this still closed?

still have in 5.0.1 latest

@felixrieseberg Is this fix meant to be available in the 2.0 prereleases?

I’ve tried 2.0.0-beta.5 (2343f7c) and still having the same warning message come up when I have frame: false. No rendering issues, just this warning. Thx!

This is still present at 5.0.8. Would love to have this reopened.

Still happens in electron 4.0.1

`

 app.on('ready', () => {

// Hide dock icon, not needed for tray application
app.dock.hide();

mainWindow = new BrowserWindow({
    height: 500,
    width: 300,
    frame: false,
    resizable: false,
    alwaysOnTop: true,
    show: false,
    titleBarStyle: 'hiddenInset',
});
mainWindow.loadURL(`file://${__dirname}/src/index.html`);
mainWindow.on('blur', () => {
    mainWindow.hide();
});

const iconName = process.platform === 'win32' ? 'windows-icon.png' : 'iconTemplate.png';
const iconPath = path.join(__dirname, `./src/assets/${iconName}`);

tray = new TimerTray(iconPath, mainWindow);
});

`

I have electron 2.0.8 and still get this error.

I have electron 3.0.2 and still get this error, except that I get it when I set titleBarStyle: "hiddenInset"

+1, still happening on 3.0.6 for us, I agree it should be reopened

Same warning with 2.0.0, when I set frame: false!

Electron 2.0 seems to fix this issue.

Yep, that seems to be all correct - this bug isn’t as fixed as I’d like it to be. I’ll take another crack at it.

same error with v4.0.5

I’m still seeing this (and a small highlight at the top of the window) in Version 4.1.4

for temporary solution, you can use frame: false instead of titlebarStyle: hidden