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

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

Issue 2623753002: Native themes: Add separator color (Closed)
Patch Set: Change function order 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.h ('k') | chrome/browser/ui/libgtkui/native_theme_gtk3.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_gtk2.cc
diff --git a/chrome/browser/ui/libgtkui/native_theme_gtk2.cc b/chrome/browser/ui/libgtkui/native_theme_gtk2.cc
index b734c1c873d877882a1366c38e5fb47bb089ead0..edf6ef9dbb28ac377b59e6d9ec709131ee2f2e4c 100644
--- a/chrome/browser/ui/libgtkui/native_theme_gtk2.cc
+++ b/chrome/browser/ui/libgtkui/native_theme_gtk2.cc
@@ -197,6 +197,10 @@ SkColor NativeThemeGtk2::GetSystemColor(ColorId color_id) const {
case kColorId_LinkPressed:
return SK_ColorRED;
+ // Separator
+ case kColorId_SeparatorColor:
+ return GetFgColor(GetSeparator(), INSENSITIVE);
+
// Button
case kColorId_ButtonEnabledColor:
return GetTextColor(GetButton(), NORMAL);
@@ -447,4 +451,13 @@ GtkWidget* NativeThemeGtk2::GetMenuItem() const {
return fake_menu_item;
}
+GtkWidget* NativeThemeGtk2::GetSeparator() const {
+ static GtkWidget* fake_separator = NULL;
+
+ if (!fake_separator)
+ fake_separator = gtk_hseparator_new();
+
+ return fake_separator;
+}
+
} // namespace libgtkui
« no previous file with comments | « chrome/browser/ui/libgtkui/native_theme_gtk2.h ('k') | chrome/browser/ui/libgtkui/native_theme_gtk3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698