Package org.gnome.gtk

Class ColorDialogButton

java.lang.Object
All Implemented Interfaces:
Proxy, Accessible, Buildable, ConstraintTarget

@Generated("io.github.jwharm.JavaGI") public class ColorDialogButton extends Widget implements Accessible, Buildable, ConstraintTarget
Opens a color chooser dialog to select a color.

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

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

CSS nodes


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

GtkColorDialogButton 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.

Since:
4.10