mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 15:20:48 +08:00
FIX:change title background colour on macos
Change-Id: I387bd8c1b6d74f4db92417c3459959b3212af9f5
This commit is contained in:
parent
d14e5c9d59
commit
0d1242d9c6
@ -37,6 +37,11 @@ double mac_max_scaling_factor()
|
||||
|
||||
void set_miniaturizable(void * window)
|
||||
{
|
||||
CGFloat rFloat = 38/255.0;
|
||||
CGFloat gFloat = 46/255.0;
|
||||
CGFloat bFloat = 48/255.0;
|
||||
[(NSView*) window window].titlebarAppearsTransparent = true;
|
||||
[(NSView*) window window].backgroundColor = [NSColor colorWithCalibratedRed:rFloat green:gFloat blue:bFloat alpha:1.0];
|
||||
[(NSView*) window window].styleMask |= NSMiniaturizableWindowMask;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user