Gtk.ColorButton

const Gtk = imports.gi.Gtk;

let color_button = new Gtk.ColorButton({
    alpha: value,
    color: value,
    rgba: value,
    title: value,
    use_alpha: value,
});
  

The Gtk.ColorButton is a button which displays the currently selected color an allows to open a color selection dialog to change the color. It is suitable widget for selecting a color in a preference dialog.

Hierarchy

  • GObject.Object
    • GObject.InitiallyUnowned
      • Gtk.Widget
        • Gtk.Container
          • Gtk.Bin
            • Gtk.Button
              • Gtk.ColorButton