Commit 95ca9afe authored by gambard's avatar gambard Committed by Commit Bot

Change the color of ContentSuggestions titles

The section titles are not visible enough in ContentSuggestions.
Changing the color to match the one used for other titles should help.

BUG=740863

Change-Id: I9dd640ec6ec6cb0df734200987c06fd13ce39f50
Reviewed-on: https://chromium-review.googlesource.com/566823Reviewed-by: default avatarElodie Banel <lod@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#485589}
parent 8a60b584
......@@ -25,6 +25,7 @@
#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller_audience.h"
#import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion_identifier.h"
#import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestions_section_information.h"
#import "ios/third_party/material_components_ios/src/components/Palettes/src/MaterialPalettes.h"
#include "ui/base/l10n/l10n_util.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
......@@ -526,6 +527,7 @@ addSuggestionsToModel:(NSArray<CSCollectionViewItem*>*)suggestions
CollectionViewTextItem* header =
[[CollectionViewTextItem alloc] initWithType:ItemTypeHeader];
header.text = sectionInfo.title;
header.textColor = [[MDCPalette greyPalette] tint500];
[self.collectionViewController.collectionViewModel
setHeader:header
forSectionWithIdentifier:sectionIdentifier];
......
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