Beispiel #1
0
 public void SetBackground(Range <int> range, Color color)
 {
     ApplyTag(BackgroundTagName, color.ToArgb().ToString(), range, tag =>
     {
         tag.BackgroundGdk = color.ToGdk();
         tag.BackgroundSet = true;
     });
 }
Beispiel #2
0
 public void SetBackground(Range <int> range, Color color)
 {
     ApplyTag(BackgroundTagPrefix, color.ToArgb().ToString(), range, tag =>
     {
         tag.BackgroundGdk = color.ToGdk();
         tag.BackgroundSet = true;
     });
     Callback.OnTextChanged(Widget, EventArgs.Empty);
 }
Beispiel #3
0
 public static void SetTextColor(this Gtk.Widget widget, Color color, GtkStateFlags state = GtkStateFlags.Normal)
 {
     widget.ModifyText(state.ToGtk(), color.ToGdk());
 }
Beispiel #4
0
 public static void SetBackground(this Gtk.Widget widget, Color color, GtkStateFlags state = GtkStateFlags.Normal)
 {
     widget.ModifyBg(state.ToGtk(), color.ToGdk());
 }
Beispiel #5
0
		public static void SetForeground(this Gtk.Widget widget, Color color, GtkStateFlags state = GtkStateFlags.Normal)
		{
			widget.ModifyFg(state.ToGtk(), color.ToGdk());
		}
Beispiel #6
0
		public static void SetTextColor(this Gtk.Widget widget, Color color, GtkStateFlags state = GtkStateFlags.Normal)
		{
			widget.ModifyText(state.ToGtk(), color.ToGdk());
		}