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

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

Issue 2616273002: Native Themes: Add table header colors (Closed)
Patch Set: Add gradients back 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 | « chrome/browser/ui/libgtkui/native_theme_gtk2.cc ('k') | ui/native_theme/common_theme.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtkui/native_theme_gtk3.cc
diff --git a/chrome/browser/ui/libgtkui/native_theme_gtk3.cc b/chrome/browser/ui/libgtkui/native_theme_gtk3.cc
index 582313b8a6f3f38aeeca38cc6500f4db9c4e735b..7ee0852b4640f147593bc70a2ce05784e045b521 100644
--- a/chrome/browser/ui/libgtkui/native_theme_gtk3.cc
+++ b/chrome/browser/ui/libgtkui/native_theme_gtk3.cc
@@ -229,6 +229,15 @@ SkColor SkColorFromColorId(ui::NativeTheme::ColorId color_id) {
case ui::NativeTheme::kColorId_TreeSelectionBackgroundUnfocused:
return GetBgColor("GtkTreeView#treeview.view .view.cell:selected:focus");
+ // Table Header
+ case ui::NativeTheme::kColorId_TableHeaderText:
+ return GetFgColor(
+ "GtkTreeView#treeview.view GtkButton#button GtkLabel#label");
+ case ui::NativeTheme::kColorId_TableHeaderBackground:
+ return GetBgColor("GtkTreeView#treeview.view GtkButton#button");
+ case ui::NativeTheme::kColorId_TableHeaderSeparator:
+ return GetBorderColor("GtkTreeView#treeview.view GtkButton#button");
+
// Results Table
// TODO(thomasanderson): The GtkEntry selectors was how the gtk2 theme got
// these colors. Update this code to use a different widget.
« no previous file with comments | « chrome/browser/ui/libgtkui/native_theme_gtk2.cc ('k') | ui/native_theme/common_theme.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698