fix formatting

This commit is contained in:
uncor3
2025-11-19 20:32:22 -08:00
parent b248d30366
commit 024630cee6
+7 -4
View File
@@ -3,13 +3,16 @@
#include <QDebug>
#include <QMainWindow>
void setupMacOSWindow(QMainWindow *window) {
void setupMacOSWindow(QMainWindow *window)
{
window->setUnifiedTitleAndToolBarOnMac(true);
NSView* nativeView = reinterpret_cast<NSView*>(window->winId());
NSWindow* nativeWindow = [nativeView window];
NSView *nativeView = reinterpret_cast<NSView *>(window->winId());
NSWindow *nativeWindow = [nativeView window];
[nativeWindow setStyleMask:[nativeWindow styleMask] | NSWindowStyleMaskFullSizeContentView | NSWindowTitleHidden];
[nativeWindow setStyleMask:[nativeWindow styleMask] |
NSWindowStyleMaskFullSizeContentView |
NSWindowTitleHidden];
[nativeWindow setTitlebarAppearsTransparent:YES];
[nativeWindow center];
}