Match OS theme when picking colors in the local profile creation
When a new profile is created through the local profile creation, GenerateNewProfileColorWithGenerator() will try to choose a color with lightness close to the current color mode (either light or dark). Currently, the second and third line in the color picker will be considered in light mode, and only the last line will be considered in dark mode. Bug: 1169223 Change-Id: If3c55831a8d4e69a51353b4e52f931dab9fdc287 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2642455Reviewed-by:David Roger <droger@chromium.org> Commit-Queue: Alex Ilin <alexilin@chromium.org> Cr-Commit-Position: refs/heads/master@{#846109}
Showing
Please register or sign in to comment