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

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

Issue 2622773004: Gtk3: Allow theme authors to style Chromium widgets specially (Closed)
Patch Set: Remove dependent CL 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 | docs/linux_gtk_theme_integration.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtkui/gtk_util.cc
diff --git a/chrome/browser/ui/libgtkui/gtk_util.cc b/chrome/browser/ui/libgtkui/gtk_util.cc
index 81fefa61d5249e56a8007adbb555deca41fcf528..633539dfac49f211e723146fe46f184fee9a759c 100644
--- a/chrome/browser/ui/libgtkui/gtk_util.cc
+++ b/chrome/browser/ui/libgtkui/gtk_util.cc
@@ -294,6 +294,11 @@ ScopedStyleContext AppendNode(GtkStyleContext* context,
}
}
}
+
+ // Always add a "chromium" class so that themes can style chromium
+ // widgets specially if they want to.
+ gtk_widget_path_iter_add_class(path, -1, "chromium");
+
auto child_context = ScopedStyleContext(gtk_style_context_new());
gtk_style_context_set_path(child_context, path);
gtk_style_context_set_state(child_context, state);
« no previous file with comments | « no previous file | docs/linux_gtk_theme_integration.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698