Beispiel #1
0
 public static void SetChildBackgroundColor(this Gtk.Container container, Xwt.Drawing.Color color)
 {
     foreach (var widget in container.Children)
     {
         widget.ModifyBg(Gtk.StateType.Normal, color.ToGtkValue());
     }
 }
Beispiel #2
0
 public static void SetTextColor(this Gtk.Widget widget, Gtk.StateType state, Xwt.Drawing.Color color)
 {
     widget.ModifyText(state, color.ToGtkValue());
 }
Beispiel #3
0
 public static void SetForegroundColor(this Gtk.Widget widget, Gtk.StateType state, Xwt.Drawing.Color color)
 {
     widget.ModifyFg(state, color.ToGtkValue());
 }
Beispiel #4
0
 public static void SetBackgroundColor(this Gtk.Widget widget, Xwt.Drawing.Color color)
 {
     widget.ModifyBg(Gtk.StateType.Normal, color.ToGtkValue());
 }