Flag causes outlines to be drawn around tabs in low contrast dark themes
Currently we draw tab outlines around the active tab when contrast ratio
between tab and background for the active tab is less than 1.3 to 1.
This works reasonably well for light themes but not for dark themes.
UX have requested the ability to try rendering a stroke around the
active tab in dark, low-contrast themes.
This CL adds a flag which, when enabled, causes an additional check to
be performed: if there is less than a 20% absolute luminance difference
between the tab and background, the stroke is also drawn.
Because this is a prototype for UX/internal evaluation purposes only it
may be removed.
Bug: 968459
Change-Id: I67668ba53ed528b5fdfd9b7c58547338daded011
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1725221
Reviewed-by: Avi Drissman <[email protected]>
Commit-Queue: Dana Fried <[email protected]>
Cr-Commit-Position: refs/heads/master@{#682864}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 6464a90..1f78a158 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -1873,6 +1873,12 @@
const char kTabHoverCardImagesDescription[] =
"Shows a preview image in tab hover cards, if tab hover cards are enabled.";
+const char kTabOutlinesInLowContrastThemesName[] =
+ "Tab Outlines in Low Contrast Themes";
+const char kTabOutlinesInLowContrastThemesDescription[] =
+ "Expands the range of situations in which tab outline strokes are "
+ "displayed, improving accessiblity in dark and incognito mode.";
+
const char kTabsInCbdName[] = "Enable tabs for the Clear Browsing Data dialog.";
const char kTabsInCbdDescription[] =
"Enables a basic and an advanced tab for the Clear Browsing Data dialog.";