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

Unified Diff: chrome/browser/gtk/gtk_theme_provider.cc

Issue 155108: GTK Themes: Set the text color of bookmark buttons to theme color. (Closed)
Patch Set: Simplify. Created 11 years, 5 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/gtk/gtk_theme_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/gtk_theme_provider.cc
diff --git a/chrome/browser/gtk/gtk_theme_provider.cc b/chrome/browser/gtk/gtk_theme_provider.cc
index f0303983aa23cf8094df9e42001511909eb2e1ab..7c3c0322700f976d204beab59a4ef62705307410 100644
--- a/chrome/browser/gtk/gtk_theme_provider.cc
+++ b/chrome/browser/gtk/gtk_theme_provider.cc
@@ -13,6 +13,7 @@
#include "grit/theme_resources.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkCanvas.h"
+#include "third_party/skia/include/core/SkColor.h"
namespace {
@@ -152,3 +153,15 @@ void GtkThemeProvider::SetThemeTintFromGtk(const char* id, GdkColor* color,
SetTint(id, hsl);
}
+GtkThemeProperties::GtkThemeProperties(Profile* profile)
+ : use_gtk_rendering(GtkThemeProvider::UseSystemThemeGraphics(profile)),
+ provider(profile->GetThemeProvider()) {
+}
+
+GdkColor GtkThemeProperties::GetGdkColor(int id) {
+ SkColor color = provider->GetColor(id);
+ GdkColor gdkcolor =
+ GDK_COLOR_RGB(SkColorGetR(color), SkColorGetG(color),
+ SkColorGetB(color));
+ return gdkcolor;
+}
« no previous file with comments | « chrome/browser/gtk/gtk_theme_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698