Commit 501ca7e7 authored by Yulun Wu's avatar Yulun Wu Committed by Commit Bot

Fix incorrect default coloring.

Bug: 1137355
Change-Id: Iab0b1a6b8991c9a39da0dbb2d06b227c242a5c62
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2473137Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
Reviewed-by: default avatarYulun Wu <yulunwu@chromium.org>
Commit-Queue: Yulun Wu <yulunwu@chromium.org>
Auto-Submit: Yulun Wu <yulunwu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817342}
parent 5c24e192
...@@ -82,7 +82,7 @@ SkColor AppListColorProviderImpl::GetSuggestionChipTextColor() const { ...@@ -82,7 +82,7 @@ SkColor AppListColorProviderImpl::GetSuggestionChipTextColor() const {
SkColor AppListColorProviderImpl::GetAppListItemTextColor() const { SkColor AppListColorProviderImpl::GetAppListItemTextColor() const {
return DeprecatedGetContentLayerColor( return DeprecatedGetContentLayerColor(
AshColorProvider::ContentLayerType::kTextColorPrimary, AshColorProvider::ContentLayerType::kTextColorPrimary,
/*default_color*/ SK_ColorBLACK); /*default_color*/ SK_ColorWHITE);
} }
SkColor AppListColorProviderImpl::GetPageSwitcherButtonColor( SkColor AppListColorProviderImpl::GetPageSwitcherButtonColor(
......
...@@ -334,7 +334,9 @@ AppListItemView::AppListItemView(AppsGridView* apps_grid_view, ...@@ -334,7 +334,9 @@ AppListItemView::AppListItemView(AppsGridView* apps_grid_view,
title->SetFontList(GetAppListConfig().app_title_font()); title->SetFontList(GetAppListConfig().app_title_font());
title->SetHorizontalAlignment(gfx::ALIGN_CENTER); title->SetHorizontalAlignment(gfx::ALIGN_CENTER);
title->SetEnabledColor( title->SetEnabledColor(
AppListColorProvider::Get()->GetAppListItemTextColor()); apps_grid_view_->is_in_folder()
? SK_ColorBLACK
: AppListColorProvider::Get()->GetAppListItemTextColor());
if (!is_in_folder) { if (!is_in_folder) {
gfx::ShadowValues title_shadow = gfx::ShadowValues( gfx::ShadowValues title_shadow = gfx::ShadowValues(
......
...@@ -42,6 +42,8 @@ class FolderHeaderView::FolderNameView : public views::Textfield, ...@@ -42,6 +42,8 @@ class FolderHeaderView::FolderNameView : public views::Textfield,
ui::ResourceBundle::GetSharedInstance().GetFontListWithDelta(2)); ui::ResourceBundle::GetSharedInstance().GetFontListWithDelta(2));
set_placeholder_text_color( set_placeholder_text_color(
AppListColorProvider::Get()->GetFolderHintTextColor()); AppListColorProvider::Get()->GetFolderHintTextColor());
SetTextColor(AppListColorProvider::Get()->GetFolderTitleTextColor(
gfx::kGoogleGrey700));
SetEventTargeter(std::make_unique<views::ViewTargeter>(this)); SetEventTargeter(std::make_unique<views::ViewTargeter>(this));
} }
......
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