5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-09 22:20:50 +08:00

Merge pull request #954 from stffabi/feature/fix-mac-bgcolor

[macOS] Fix background color
This commit is contained in:
Lea Anthony 2021-11-23 03:06:33 -08:00 committed by GitHub
commit f6f13540c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,10 +299,10 @@
}
- (void) SetRGBA:(int)r :(int)g :(int)b :(int)a {
float red = r/255;
float green = g/255;
float blue = b/255;
float alpha = a/255;
float red = r/255.0;
float green = g/255.0;
float blue = b/255.0;
float alpha = a/255.0;
id colour = [NSColor colorWithCalibratedRed:red green:green blue:blue alpha:alpha ];