public void SetBackground(Range <int> range, Color color) { ApplyTag(BackgroundTagName, color.ToArgb().ToString(), range, tag => { tag.BackgroundGdk = color.ToGdk(); tag.BackgroundSet = true; }); }
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); }
public static void SetTextColor(this Gtk.Widget widget, Color color, GtkStateFlags state = GtkStateFlags.Normal) { widget.ModifyText(state.ToGtk(), color.ToGdk()); }
public static void SetBackground(this Gtk.Widget widget, Color color, GtkStateFlags state = GtkStateFlags.Normal) { widget.ModifyBg(state.ToGtk(), color.ToGdk()); }
public static void SetForeground(this Gtk.Widget widget, Color color, GtkStateFlags state = GtkStateFlags.Normal) { widget.ModifyFg(state.ToGtk(), color.ToGdk()); }