Commit a136fdec authored by My Nguyen's avatar My Nguyen Committed by Commit Bot

Fix index font for emoji suggestions

Current View: http://screen/6xC9K1fruqH
Specs: http://screen/qgE7xnf2LhN

Bug: 1099454
Change-Id: I7b1084aaaae671448c7e0d20b80616cdd0e60602
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2281789Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Commit-Queue: My Nguyen <myy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#785255}
parent d94fefd3
...@@ -21,6 +21,10 @@ namespace { ...@@ -21,6 +21,10 @@ namespace {
// The label text is not set in this function. // The label text is not set in this function.
std::unique_ptr<views::Label> CreateIndexLabel() { std::unique_ptr<views::Label> CreateIndexLabel() {
auto index_label = std::make_unique<views::Label>(); auto index_label = std::make_unique<views::Label>();
index_label->SetFontList(gfx::FontList({kFontStyle}, gfx::Font::NORMAL,
kIndexFontSize,
gfx::Font::Weight::MEDIUM));
index_label->SetEnabledColor(kSuggestionColor);
index_label->SetHorizontalAlignment(gfx::ALIGN_CENTER); index_label->SetHorizontalAlignment(gfx::ALIGN_CENTER);
index_label->SetBorder( index_label->SetBorder(
views::CreateEmptyBorder(gfx::Insets(kPadding / 2, 0))); views::CreateEmptyBorder(gfx::Insets(kPadding / 2, 0)));
......
...@@ -22,6 +22,7 @@ struct SuggestionDetails; ...@@ -22,6 +22,7 @@ struct SuggestionDetails;
constexpr char kFontStyle[] = "Roboto"; constexpr char kFontStyle[] = "Roboto";
constexpr int kSuggestionFontSize = 14; constexpr int kSuggestionFontSize = 14;
constexpr int kAnnotationFontSize = 10; constexpr int kAnnotationFontSize = 10;
constexpr int kIndexFontSize = 10;
// Style-related constants // Style-related constants
constexpr int kAnnotationBorderThickness = 1; constexpr int kAnnotationBorderThickness = 1;
......
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