Package: gtk
Function gtk:color-chooser-add-palette
Lambda Listgtk:color-chooser-add-palette (chooser orientation colors-per-line colors) ArgumentsDetails
Adds a palette to the color chooser. If the orientation is :horizontal, the colors are grouped in rows, with colors-per-line colors in each row. If the orientation is :vertical, the colors are grouped in columns instead. The default color palette of the color chooser widget has 34 colors, organized in columns of 5 colors. This includes some grays. The layout of the color chooser widget works best when the palettes have 9-10 columns. Calling this function for the first time has the side effect of removing the default color and gray palettes from the color chooser. If colors is nil, removes all previously added palettes. Warning | See also |
2024-5-21