From 0cb5631b0b5de09878bb0d9f6cb36d146b23b7a9 Mon Sep 17 00:00:00 2001 From: Jeremy Rose Date: Mon, 12 Jul 2021 11:08:10 -0700 Subject: [PATCH] fix: return RGBA values from getSystemColor (#30055) --- shell/browser/api/electron_api_system_preferences_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/api/electron_api_system_preferences_mac.mm b/shell/browser/api/electron_api_system_preferences_mac.mm index 224cd7966dbf..f9a9ccbf5549 100644 --- a/shell/browser/api/electron_api_system_preferences_mac.mm +++ b/shell/browser/api/electron_api_system_preferences_mac.mm @@ -406,7 +406,7 @@ std::string SystemPreferences::GetSystemColor(gin_helper::ErrorThrower thrower, return ""; } - return ToRGBHex(skia::NSSystemColorToSkColor(sysColor)); + return ToRGBAHex(skia::NSSystemColorToSkColor(sysColor)); } bool SystemPreferences::CanPromptTouchID() {