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

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

Issue 2623753002: Native themes: Add separator color (Closed)
Patch Set: 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
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 db9b9d597416ffd06780f43a0b5ad19b35f9869f..5c0cb8bafd47bc4bf38a23417385e41b7e231e31 100644
--- a/chrome/browser/ui/libgtkui/native_theme_gtk3.cc
+++ b/chrome/browser/ui/libgtkui/native_theme_gtk3.cc
@@ -135,6 +135,10 @@ SkColor SkColorFromColorId(ui::NativeTheme::ColorId color_id) {
}
}
+ // Separator
+ case ui::NativeTheme::kColorId_SeparatorColor:
+ return GetFgColor("GtkSeparator#separator.horizontal");
+
// Button
case ui::NativeTheme::kColorId_ButtonEnabledColor:
return GetFgColor("GtkButton#button.text-button GtkLabel#label");
@@ -321,6 +325,7 @@ NativeThemeGtk3::NativeThemeGtk3() {
g_type_class_unref(g_type_class_ref(gtk_scrollbar_get_type()));
g_type_class_unref(g_type_class_ref(gtk_toolbar_get_type()));
g_type_class_unref(g_type_class_ref(gtk_text_view_get_type()));
+ g_type_class_unref(g_type_class_ref(gtk_separator_get_type()));
g_signal_connect_after(gtk_settings_get_default(), "notify::gtk-theme-name",
G_CALLBACK(OnThemeChanged), this);

Powered by Google App Engine
This is Rietveld 408576698