0

My app looks so:

enter image description here

I want it to look so:

enter image description here

I.e. same background color, no border line between title bar and toolbar.

Yes, It seems I know how to do this using native toolbar (according to this). But I would prefer to avoid using native toolbars if it's possible. This toolbar is created by Qt QML code. It's cross-platform and is used on Windows/Mac/Linux.

Is it possible?

P.S. I'm not very much familiar with native macOS programming, so some code examples in C++ or Objective-C are highly appreciated.

Alexander Dyagilev
  • 1,139
  • 1
  • 15
  • 43

1 Answers1

1

Thanks to this answer I have found that NSFullSizeContentViewWindowMask + transparent title bar does the trick for me. I.e.

self.window?.titlebarAppearsTransparent = true
self.window?.styleMask |= NSFullSizeContentViewWindowMask
Alexander Dyagilev
  • 1,139
  • 1
  • 15
  • 43