mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-04 04:24:04 -06:00
FIX:change title background colour on macos
Change-Id: I387bd8c1b6d74f4db92417c3459959b3212af9f5
This commit is contained in:
parent
d14e5c9d59
commit
0d1242d9c6
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue