Commit 9449f1d1 authored by Xiaoqian Dai's avatar Xiaoqian Dai Committed by Commit Bot

AshColorProvider: Add button icon color variant.

Bug: 972162
Change-Id: I64027b7ba3be9842b4e8c4e7a270e9ae96d78cc7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2290290Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Xiaoqian Dai <xdai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786886}
parent a4361822
...@@ -297,10 +297,12 @@ SkColor AshColorProvider::GetContentLayerColorImpl( ...@@ -297,10 +297,12 @@ SkColor AshColorProvider::GetContentLayerColorImpl(
return cros_colors::ResolveColor(ColorName::kDefaultIconColorProminent, return cros_colors::ResolveColor(ColorName::kDefaultIconColorProminent,
color_mode); color_mode);
case ContentLayerType::kButtonLabelColor: case ContentLayerType::kButtonLabelColor:
case ContentLayerType::kButtonIconColor:
light_color = gfx::kGoogleGrey700; light_color = gfx::kGoogleGrey700;
dark_color = gfx::kGoogleGrey200; dark_color = gfx::kGoogleGrey200;
break; break;
case ContentLayerType::kButtonLabelColorPrimary: case ContentLayerType::kButtonLabelColorPrimary:
case ContentLayerType::kButtonIconColorPrimary:
light_color = gfx::kGoogleRed900; light_color = gfx::kGoogleRed900;
dark_color = gfx::kGoogleRed200; dark_color = gfx::kGoogleRed200;
break; break;
......
...@@ -100,6 +100,9 @@ class ASH_EXPORT AshColorProvider { ...@@ -100,6 +100,9 @@ class ASH_EXPORT AshColorProvider {
kButtonLabelColor, kButtonLabelColor,
kButtonLabelColorPrimary, kButtonLabelColorPrimary,
kButtonIconColor,
kButtonIconColorPrimary,
// Color for system menu icon buttons with inverted dark mode colors, e.g, // Color for system menu icon buttons with inverted dark mode colors, e.g,
// FeaturePodIconButton // FeaturePodIconButton
kSystemMenuIconColor, kSystemMenuIconColor,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment