fix: systemPreferences.getAccentColor inverted color (#48624)
fix: systemPreferences.getAccentColor inverted color Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
90674e0b7b
commit
e3715b0538
2 changed files with 11 additions and 2 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include "base/win/wrapped_window_proc.h"
|
||||
#include "shell/common/color_util.h"
|
||||
#include "shell/common/process_util.h"
|
||||
#include "skia/ext/skia_utils_win.h"
|
||||
#include "ui/gfx/win/hwnd_util.h"
|
||||
#include "ui/gfx/win/singleton_hwnd.h"
|
||||
|
||||
|
|
@ -88,7 +89,7 @@ std::string SystemPreferences::GetAccentColor() {
|
|||
if (!color.has_value())
|
||||
return "";
|
||||
|
||||
return hexColorDWORDToRGBA(color.value());
|
||||
return ToRGBAHex(skia::COLORREFToSkColor(color.value()), false);
|
||||
}
|
||||
|
||||
std::string SystemPreferences::GetColor(gin_helper::ErrorThrower thrower,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue