Commit 39798422 authored by Xiaoqian Dai's avatar Xiaoqian Dai Committed by Commit Bot

back gesture contextual nudge: small UI nits.

Bug: 1009005b
Change-Id: I629c8f297758366383922d33e6f646d2ce2fbad2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2082023Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Xiaoqian Dai <xdai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746170}
parent a311cf92
......@@ -46,7 +46,7 @@ constexpr int kPaddingBetweenCircleAndLabel = 8;
constexpr SkColor kLabelColor = gfx::kGoogleGrey200;
// Width and height of the label.
constexpr int kLabelWidth = 80;
constexpr int kLabelWidth = 70;
constexpr int kLabelHeight = 80;
// Duration of the pause before sliding in to show the nudge.
......@@ -174,6 +174,7 @@ class BackGestureContextualNudge::ContextualNudgeView
label_->SetText(
l10n_util::GetStringUTF16(IDS_ASH_BACK_GESTURE_CONTEXTUAL_NUDGE));
label_->SetMultiLine(true);
label_->SetHorizontalAlignment(gfx::HorizontalAlignment::ALIGN_LEFT);
label_->SetFontList(
gfx::FontList().DeriveWithWeight(gfx::Font::Weight::MEDIUM));
AddChildView(label_);
......
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