ColorButton


Object Hierarchy:

Object hierarchy for ColorButton

Description:


public class ColorButton : Button, Implementor, Buildable, Activatable

The `GtkColorButton` allows to open a color chooser dialog to change the color.

Note:

Use [class@Gtk.ColorDialogButton] instead

<picture> <source srcset="color-button-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkColorButton" src="color-button.png"> </picture>

It is suitable widget for selecting a color in a preference dialog.

CSS nodes

``` colorbutton ╰── button.color ╰── [content] ```

`GtkColorButton` has a single CSS node with name colorbutton which contains a button node. To differentiate it from a plain `GtkButton`, it gets the .color style class.


Namespace: Gtk
Package: gtk+-2.0

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from class Gtk.Object
All known members inherited from interface Atk.Implementor