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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_strip_view.mm

Issue 2719993004: cocoa: draw tabstrip stroke in white in increase-contrast incognito (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 | chrome/browser/ui/cocoa/tabs/tab_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
index a59f02047d4c99a1d3a8210c2b2066c704e47433..b3dcc322a00a3129906cc6c6515fff60906de881 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
@@ -85,6 +85,12 @@ - (void)drawBottomEdge:(NSRect)dirtyRect {
} else {
strokeColor =
themeProvider->GetNSColor(ThemeProperties::COLOR_TOOLBAR_STROKE);
+
+ // If the current theme is the system theme, and the system is in "increase
+ // contrast" mode, and this is an incognito window, force the toolbar stroke
+ // to be drawn in white instead of black, to make it show up better.
+ if ([[self window] hasDarkTheme] && themeProvider->ShouldIncreaseContrast())
+ strokeColor = [NSColor whiteColor];
}
if (themeProvider->ShouldIncreaseContrast())
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/tabs/tab_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698