Gtk.ColorButton.new
function new():Gtk.Widget { // Gjs wrapper for gtk_color_button_new() }
Creates a new color button.
This returns a widget in the form of a small button containing a swatch representing the current selected color. When the button is clicked, a color-selection dialog will open, allowing the user to select a color. The swatch will be updated to reflect the new color when the user finishes.
Since 2.4
- Returns
a new color button