Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1826)

Unified Diff: chrome/browser/ui/cocoa/background_gradient_view.mm

Issue 2710093002: cocoa: draw BackgroundGradientView separators darker in Increase Contrast mode (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/background_gradient_view.mm
diff --git a/chrome/browser/ui/cocoa/background_gradient_view.mm b/chrome/browser/ui/cocoa/background_gradient_view.mm
index b56f3d0551037bff7704194803f7d524c6c4303e..aa16f6d9ef9ada606045dee95842b0a5e4022290 100644
--- a/chrome/browser/ui/cocoa/background_gradient_view.mm
+++ b/chrome/browser/ui/cocoa/background_gradient_view.mm
@@ -98,6 +98,12 @@ - (NSColor*)strokeColor {
const ui::ThemeProvider* themeProvider = [window themeProvider];
if (!themeProvider)
return [NSColor blackColor];
+ if (themeProvider->ShouldIncreaseContrast()) {
+ if ([window hasDarkTheme])
+ return [NSColor whiteColor];
+ else
+ return [NSColor blackColor];
+ }
return themeProvider->GetNSColor(
ThemeProperties::COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698