feat: systemPreferences.getColor
should return RGBA instead of RGB (#38960)
* fix: return RGBA hex value from `SystemPreferences.getColor` * docs: update docs to match changes of last commit * fix: GetColor on windows now returns RGBA too * fix: update tests for getColor RGBA on Windows --------- Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
dd7395ebed
commit
d002f16157
4 changed files with 5 additions and 5 deletions
|
@ -540,7 +540,7 @@ std::string SystemPreferences::GetColor(gin_helper::ErrorThrower thrower,
|
|||
}
|
||||
|
||||
if (sysColor)
|
||||
return ToRGBHex(skia::NSSystemColorToSkColor(sysColor));
|
||||
return ToRGBAHex(skia::NSSystemColorToSkColor(sysColor));
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue