2021-05-20 06:25:52 +00:00
|
|
|
#include "statuswindow.h"
|
2021-05-12 08:11:25 +00:00
|
|
|
|
|
|
|
#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)
|
2021-05-12 08:11:25 +00:00
|
|
|
{
|
|
|
|
NSView *nsView = reinterpret_cast<NSView*>(wid);
|
|
|
|
NSWindow *window = [nsView window];
|
|
|
|
|
|
|
|
window.titlebarAppearsTransparent = true;
|
|
|
|
window.titleVisibility = NSWindowTitleHidden;
|
|
|
|
window.styleMask |= NSWindowStyleMaskFullSizeContentView;
|
|
|
|
}
|