Commit 4e6cae4f authored by Thomas Tellier's avatar Thomas Tellier Committed by Commit Bot

[CrOs] Fix icon color for system label button on login/lock screen

Bug: 1104336
Change-Id: I7da10e535330b0f583d9998b334e41061fe0cd1f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2536437Reviewed-by: default avatarThomas Tellier <tellier@google.com>
Reviewed-by: default avatarMin Chen <minch@chromium.org>
Commit-Queue: Thomas Tellier <tellier@google.com>
Cr-Commit-Position: refs/heads/master@{#827361}
parent 717bafd5
...@@ -51,11 +51,12 @@ SystemLabelButton::SystemLabelButton(PressedCallback callback, ...@@ -51,11 +51,12 @@ SystemLabelButton::SystemLabelButton(PressedCallback callback,
SetPaintToLayer(); SetPaintToLayer();
layer()->SetFillsBoundsOpaquely(false); layer()->SetFillsBoundsOpaquely(false);
if (display_type == DisplayType::ALERT_WITH_ICON) { if (display_type == DisplayType::ALERT_WITH_ICON) {
SetImage(views::Button::STATE_NORMAL, SetImage(
CreateVectorIcon( views::Button::STATE_NORMAL,
kLockScreenAlertIcon, CreateVectorIcon(
AshColorProvider::Get()->GetContentLayerColor( kLockScreenAlertIcon,
AshColorProvider::ContentLayerType::kIconColorAlert))); AshColorProvider::Get()->GetContentLayerColor(
AshColorProvider::ContentLayerType::kButtonIconColorPrimary)));
} }
SetTextSubpixelRenderingEnabled(false); SetTextSubpixelRenderingEnabled(false);
SetInkDropMode(InkDropMode::ON); SetInkDropMode(InkDropMode::ON);
......
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