2
0
mirror of synced 2025-01-20 19:40:12 +00:00
status-qml/sandbox/statuswindow_mac.mm
2021-05-20 10:48:51 +02:00

19 lines
465 B
Plaintext

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