StatusQ/sandbox/statuswindow_mac.mm

19 lines
465 B
Plaintext
Raw Normal View History

2021-05-20 06:25:52 +00:00
#include "statuswindow.h"
#include <QColor>
#include <Foundation/Foundation.h>
#include <AppKit/NSView.h>
#include <AppKit/NSWindow.h>
#include <AppKit/NSColor.h>
2021-05-20 06:25:52 +00:00
void StatusWindow::removeTitleBar(WId wid)
{
NSView *nsView = reinterpret_cast<NSView*>(wid);
NSWindow *window = [nsView window];
window.titlebarAppearsTransparent = true;
window.titleVisibility = NSWindowTitleHidden;
window.styleMask |= NSWindowStyleMaskFullSizeContentView;
}