Skip to content

Commit

Permalink
Specifies label background even if it's not painted.
Browse files Browse the repository at this point in the history
The transparent background needs to be specified when the color
is specified, otherwise it may render the text incorrectly.

BUG=433487
R=xiyuan@chromium.org
TEST=manually

Review URL: https://codereview.chromium.org/716293004

Cr-Commit-Position: refs/heads/master@{#304307}
  • Loading branch information
jmuk authored and Commit bot committed Nov 15, 2014
1 parent 6d5c88b commit d05fc38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/app_list/views/tile_item_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ TileItemView::~TileItemView() {
}

void TileItemView::SetTitleBackgroundColor(SkColor color) {
title_->SetBackgroundColor(color);
title_->set_background(views::Background::CreateSolidBackground(color));
}

Expand Down

0 comments on commit d05fc38

Please sign in to comment.