Commit 9214f5af authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

Fix the color of tools menu's disabled elements

The tools menu disabled elements had the standard blue color.
This CL makes sure that they have the correct grey color.

Bug: 843939
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: Iddbd9e8ea33d329cd5552d77d3acd54db9b5473a
Reviewed-on: https://chromium-review.googlesource.com/1064050Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559505}
parent 18170a49
......@@ -228,8 +228,10 @@ NSString* const kToolsMenuTextBadgeAccessibilityIdentifier =
- (void)setDestructiveAction:(BOOL)destructiveAction {
_destructiveAction = destructiveAction;
self.titleLabel.textColor = self.contentColor;
self.imageView.tintColor = self.contentColor;
if (self.userInteractionEnabled) {
self.titleLabel.textColor = self.contentColor;
self.imageView.tintColor = self.contentColor;
}
}
- (UIColor*)contentColor {
......
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