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

Unified Diff: chrome/browser/themes/theme_service.cc

Issue 1764003002: Remove COLOR_STATUS_BAR_TEXT. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: chrome/browser/themes/theme_service.cc
diff --git a/chrome/browser/themes/theme_service.cc b/chrome/browser/themes/theme_service.cc
index 02d80af857d45095e090c00b3e1ce0e199d09a2e..940867894e8be785dad0ff20abb8f7122de08b01 100644
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -477,21 +477,6 @@ SkColor ThemeService::GetDefaultColor(int id, bool incognito) const {
return color_utils::AlphaBlend(GetColor(kLabelBackground, incognito),
SK_ColorBLACK, 230);
#endif
- case ThemeProperties::COLOR_STATUS_BAR_TEXT: {
- // A long time ago, we blended the toolbar and the tab text together to
- // get the status bar text because, at the time, our text rendering in
- // views couldn't do alpha blending. Even though this is no longer the
- // case, this blending decision is built into the majority of themes that
- // exist, and we must keep doing it.
- SkColor toolbar_color =
- GetColor(ThemeProperties::COLOR_TOOLBAR, incognito);
- SkColor text_color = GetColor(ThemeProperties::COLOR_TAB_TEXT, incognito);
- return SkColorSetARGB(
- SkColorGetA(text_color),
- (SkColorGetR(text_color) + SkColorGetR(toolbar_color)) / 2,
- (SkColorGetG(text_color) + SkColorGetR(toolbar_color)) / 2,
- (SkColorGetB(text_color) + SkColorGetR(toolbar_color)) / 2);
- }
}
return ThemeProperties::GetDefaultColor(id, incognito);

Powered by Google App Engine
This is Rietveld 408576698