Commit 3d470614 authored by stkhapugin@chromium.org's avatar stkhapugin@chromium.org Committed by Commit Bot

[iOS] Use the colorful mic icon in original rendering mode.

We mistakingly were using UIImageRenderingModeAlwaysTemplate for the
new colored mic icon, stripping the color.
Use UIImageRenderingModeAlwaysOriginal to keep the colors from the png.

Bug: 868962
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I5556cba4ef5e888c03d48d091f635bee3cfb95a4
Reviewed-on: https://chromium-review.googlesource.com/1162171Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Commit-Queue: Stepan Khapugin <stkhapugin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580542}
parent 9fb97851
...@@ -260,7 +260,7 @@ void configureVoiceSearchButton(UIButton* voiceSearchButton, ...@@ -260,7 +260,7 @@ void configureVoiceSearchButton(UIButton* voiceSearchButton,
UIImage* micImage = UIImage* micImage =
IsUIRefreshPhase1Enabled() IsUIRefreshPhase1Enabled()
? [[UIImage imageNamed:@"location_bar_voice"] ? [[UIImage imageNamed:@"location_bar_voice"]
imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]
: [UIImage imageNamed:@"voice_icon"]; : [UIImage imageNamed:@"voice_icon"];
[voiceSearchButton setImage:micImage forState:UIControlStateNormal]; [voiceSearchButton setImage:micImage forState:UIControlStateNormal];
if (IsUIRefreshPhase1Enabled()) { if (IsUIRefreshPhase1Enabled()) {
......
...@@ -378,7 +378,7 @@ typedef NS_ENUM(int, TrailingButtonState) { ...@@ -378,7 +378,7 @@ typedef NS_ENUM(int, TrailingButtonState) {
[self.locationBarSteadyView.trailingButton [self.locationBarSteadyView.trailingButton
setImage: setImage:
[[UIImage imageNamed:@"location_bar_voice"] [[UIImage imageNamed:@"location_bar_voice"]
imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]
forState:UIControlStateNormal]; forState:UIControlStateNormal];
self.locationBarSteadyView.trailingButton.accessibilityLabel = self.locationBarSteadyView.trailingButton.accessibilityLabel =
l10n_util::GetNSString(IDS_IOS_TOOLS_MENU_VOICE_SEARCH); l10n_util::GetNSString(IDS_IOS_TOOLS_MENU_VOICE_SEARCH);
......
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