Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cc-side-panel] Replace default color with main color if it exists
Adds a separate <customize-chrome-color> for the extracted / main color of the background image, which is shown in place of the default color if a main color for the background image exists. The main color circles is selected whenever the currently set theme matches the extracted color. To that end, this CL refactors the selection logic somewhat to better guarantee at most one selected color circle. + Makes the main color optional in the background image data to robustly identify the case where there is no main color. + Sets main color to null if extracted color feature is disabled so that we can disable the feature later on if need be. https://screenshot.googleplex.com/57TvkNaruwuuoTF Fixed: 1401018 Change-Id: I9cadd272146081c044e484bb0f024e08d1f23c62 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4112661 Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org> Reviewed-by: Alex Gough <ajgo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1084962}
- Loading branch information
Tibor Goldschwendt
authored and
Chromium LUCI CQ
committed
Dec 19, 2022
1 parent
d2e82e2
commit 44145ef
Showing
13 changed files
with
207 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
chrome/app/generated_resources_grd/IDS_NTP_CUSTOMIZE_MAIN_COLOR_LABEL.png.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2047f3cd7a6cc0b347ba3ac3bd59dfdd4f586780 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.