Commit 02c0da02 authored by Wenzhao Zang's avatar Wenzhao Zang Committed by Commit Bot

cros: Fix black shadow issue for login shelf buttons

Verified it works on a Paine. This is a regression caused by
https://chromium-review.googlesource.com/c/chromium/src/+/1138861

Bug: 873609
Change-Id: I929fb3be9f0f811d901811aebf34c8c52ea42bf2
Reviewed-on: https://chromium-review.googlesource.com/1175192Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Wenzhao (Colin) Zang <wzang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583072}
parent 95326269
...@@ -112,6 +112,8 @@ class LoginShelfButton : public views::LabelButton { ...@@ -112,6 +112,8 @@ class LoginShelfButton : public views::LabelButton {
SetPaintToLayer(); SetPaintToLayer();
layer()->SetFillsBoundsOpaquely(false); layer()->SetFillsBoundsOpaquely(false);
SetTextSubpixelRenderingEnabled(false);
SetImageLabelSpacing(kImageLabelSpacingDp); SetImageLabelSpacing(kImageLabelSpacingDp);
SetTextColor(views::Button::STATE_NORMAL, SetTextColor(views::Button::STATE_NORMAL,
login_constants::kButtonEnabledColor); login_constants::kButtonEnabledColor);
......
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