Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVsevolod Kukol <sevoku@microsoft.com>2016-09-22 16:03:47 +0300
committerVsevolod Kukol <sevoku@microsoft.com>2016-09-22 16:03:47 +0300
commitbdb5528e0a977532f4301d6fc80386e2209c641d (patch)
tree5fa7210f6e6f75980f5a42fafc4dd22f5735af03 /Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
parentcb0011032fb9595df27d81cff6d940c51eaac23b (diff)
[Gtk] Fix Button.LabelColor for text only buttons
Diffstat (limited to 'Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs')
-rwxr-xr-xXwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
index 2a725b4f..42ff6f80 100755
--- a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
@@ -74,6 +74,8 @@ namespace Xwt.GtkBackend
}
set {
customLabelColor = value;
+ Widget.SetForegroundColor (value);
+ Widget.SetForegroundColor (Gtk.StateType.Prelight, value);
if (labelWidget != null) {
labelWidget.SetForegroundColor (value);
labelWidget.SetForegroundColor (Gtk.StateType.Prelight, value);