From 21ce7709ab31310f64d5bb0841dc857cfa240942 Mon Sep 17 00:00:00 2001 From: stffabi Date: Tue, 23 Nov 2021 11:18:00 +0100 Subject: [PATCH] [macOS] Fix background color --- v2/internal/frontend/desktop/darwin/WailsContext.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v2/internal/frontend/desktop/darwin/WailsContext.m b/v2/internal/frontend/desktop/darwin/WailsContext.m index a42896123..2d4e07b5c 100644 --- a/v2/internal/frontend/desktop/darwin/WailsContext.m +++ b/v2/internal/frontend/desktop/darwin/WailsContext.m @@ -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 ];