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

Unified Diff: chrome/browser/ui/libgtkui/native_theme_gtk2.cc

Issue 2616273002: Native Themes: Add table header colors (Closed)
Patch Set: Refactor Created 3 years, 11 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/libgtkui/native_theme_gtk3.cc » ('j') | ui/native_theme/common_theme.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtkui/native_theme_gtk2.cc
diff --git a/chrome/browser/ui/libgtkui/native_theme_gtk2.cc b/chrome/browser/ui/libgtkui/native_theme_gtk2.cc
index edf6ef9dbb28ac377b59e6d9ec709131ee2f2e4c..d1aa13b488de79447fc23937806ec000ca8eb8d7 100644
--- a/chrome/browser/ui/libgtkui/native_theme_gtk2.cc
+++ b/chrome/browser/ui/libgtkui/native_theme_gtk2.cc
@@ -268,6 +268,14 @@ SkColor NativeThemeGtk2::GetSystemColor(ColorId color_id) const {
case kColorId_TableGroupingIndicatorColor:
return GetTextAAColor(GetTree(), NORMAL);
+ // Table Headers
+ case kColorId_TableHeaderText:
+ case kColorId_TableHeaderBackground:
+ case kColorId_TableHeaderSeparator:
+ // Fallback to using common theme colors.
+ return ui::NativeTheme::GetInstanceForNativeUi()->GetSystemColor(
Evan Stade 2017/01/19 00:49:22 why fall back to common colors? that will give us
Tom (Use chromium acct) 2017/01/19 02:03:23 Changed this to get the colors directly
+ color_id);
+
// Results Table
case kColorId_ResultsTableNormalBackground:
return GetSystemColor(kColorId_TextfieldDefaultBackground);
« no previous file with comments | « no previous file | chrome/browser/ui/libgtkui/native_theme_gtk3.cc » ('j') | ui/native_theme/common_theme.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698