mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 03:29:03 +08:00
[macOS] Fix background color
This commit is contained in:
parent
d569e37b81
commit
21ce7709ab
@ -299,10 +299,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void) SetRGBA:(int)r :(int)g :(int)b :(int)a {
|
- (void) SetRGBA:(int)r :(int)g :(int)b :(int)a {
|
||||||
float red = r/255;
|
float red = r/255.0;
|
||||||
float green = g/255;
|
float green = g/255.0;
|
||||||
float blue = b/255;
|
float blue = b/255.0;
|
||||||
float alpha = a/255;
|
float alpha = a/255.0;
|
||||||
|
|
||||||
id colour = [NSColor colorWithCalibratedRed:red green:green blue:blue alpha:alpha ];
|
id colour = [NSColor colorWithCalibratedRed:red green:green blue:blue alpha:alpha ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user