COMMIT_MESSAGE

 1[GTK] Respect the current style's font color for buttons.
 2

WebCore/platform/gtk/RenderThemeGtk.cpp

2525#include "RenderThemeGtk.h"
2626
2727#include "AffineTransform.h"
 28#include "CSSValueKeywords.h"
2829#include "GOwnPtr.h"
2930#include "Gradient.h"
3031#include "GraphicsContext.h"

@@void RenderThemeGtk::systemFont(int, FontDescription&) const
582583 notImplemented();
583584}
584585
 586Color RenderThemeGtk::systemColor(int cssValueId) const
 587{
 588 GtkWidget* widget = gtkEntry();
 589 switch (cssValueId) {
 590 case CSSValueButtontext:
 591 return Color(widget->style->fg[GTK_STATE_NORMAL]);
 592 default:
 593 return RenderTheme::systemColor(cssValueId);
 594 }
 595}
 596
585597static void gtkStyleSetCallback(GtkWidget* widget, GtkStyle* previous, RenderTheme* renderTheme)
586598{
587599 // FIXME: Make sure this function doesn't get called many times for a single GTK+ style change signal.

WebCore/platform/gtk/RenderThemeGtk.h

@@public:
8282
8383 virtual void platformColorsDidChange();
8484
85  // System fonts.
 85 // System fonts and colors.
8686 virtual void systemFont(int propId, FontDescription&) const;
 87 virtual Color systemColor(int cssValueId) const;
8788
8889#if ENABLE(VIDEO)
8990 virtual String extraMediaControlsStyleSheet();