Commit 567df473 authored by Javier Ernesto Flores Robles's avatar Javier Ernesto Flores Robles Committed by Commit Bot

[iOS][Alert][DarkMode] Use dynamic color for highlight state

Bug: 1001014
Change-Id: Ib07c934eccc2f89f89ca57f4fb35f05025006d32
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1787418
Auto-Submit: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Commit-Queue: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695118}
parent 6c33e7e9
...@@ -28,6 +28,7 @@ source_set("elements") { ...@@ -28,6 +28,7 @@ source_set("elements") {
"//ios/chrome/browser", "//ios/chrome/browser",
"//ios/chrome/browser/ui/coordinators:chrome_coordinators", "//ios/chrome/browser/ui/coordinators:chrome_coordinators",
"//ios/chrome/browser/ui/util", "//ios/chrome/browser/ui/util",
"//ios/chrome/common/colors",
] ]
} }
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
#import "ios/chrome/browser/ui/elements/gray_highlight_button.h" #import "ios/chrome/browser/ui/elements/gray_highlight_button.h"
#import "ios/chrome/common/colors/semantic_color_names.h"
#if !defined(__has_feature) || !__has_feature(objc_arc) #if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support." #error "This file requires ARC support."
#endif #endif
...@@ -13,7 +15,7 @@ ...@@ -13,7 +15,7 @@
- (void)setHighlighted:(BOOL)highlighted { - (void)setHighlighted:(BOOL)highlighted {
[super setHighlighted:highlighted]; [super setHighlighted:highlighted];
if (highlighted) { if (highlighted) {
self.backgroundColor = [UIColor colorWithWhite:235.0 / 255.0 alpha:1.0]; self.backgroundColor = [UIColor colorNamed:kTableViewRowHighlightColor];
} else { } else {
self.backgroundColor = [UIColor clearColor]; self.backgroundColor = [UIColor clearColor];
} }
......
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