forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix icon highlights for hosted apps with dark theme colors
This CL fixes invisible icon highlights for hosted apps with dark theme colors. This CL updates the ink highlight base color logic of indicator icons like content settings, page actions and extension actions to be based on which container they're in. This allows hosted app title bars to set the icon highlights relative to the icon colors (and theme color) while leaving the location bar to continue using its existing color logic. Before: https://bugs.chromium.org/p/chromium/issues/attachment?aid=360311&signed_aid=D7ev8tHi_uOFeRdmHnjC4w==&inline=1 After: https://bugs.chromium.org/p/chromium/issues/attachment?aid=360312&signed_aid=A_FQTmAn6KoTeq63KBhU7Q==&inline=1 A side effect of this CL is that content settings in the location bar now use the same highlight color logic as everything else in the location bar. Their highlight logic changed accidentally in https://chromium-review.googlesource.com/1195721 when the location bar started using the same code path as the hosted app button container does for setting the icon's color, triggering a different codepath in ContentSettingImageView::GetInkDropBaseColor(). Before: https://bugs.chromium.org/p/chromium/issues/attachment?aid=360308&signed_aid=sdSbBOu-p_YHCps3f1QFbw==&inline=1 After: https://bugs.chromium.org/p/chromium/issues/attachment?aid=360309&signed_aid=8gOEBWYKu8_ZCLpyzbHHdA==&inline=1 Bug: 876271 Change-Id: I610500fcd2362d371a82b6da79c9edc6a03d42c1 Reviewed-on: https://chromium-review.googlesource.com/c/1248521 Commit-Queue: Alan Cutter <alancutter@chromium.org> Reviewed-by: Bret Sepulveda <bsep@chromium.org> Reviewed-by: Evan Stade <estade@chromium.org> Cr-Commit-Position: refs/heads/master@{#597810}
- Loading branch information
1 parent
697307b
commit cbf3800
Showing
17 changed files
with
128 additions
and
77 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
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
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.