Skip to content

Colorpicker

colorpicker

colorpicker.ColorPicker1

The ColorPicker associated with individual items

These pickers show up in lists of items (in mq and mw sidebars) and near individual items (in rq and rw sidebars). They also have a checkbox, stating whether the color counts as customized. Customized colors are held in a global colorMap, which is saved in a cookie upon every picking action.

All actions are processed by the highlight2 (!) method of the associated Settings object.

Kind: static class of colorpicker
See

colorpicker.ColorPicker2

The ColorPicker associated with the view settings in a sidebar

These pickers show up at the top of the individual sidebars, only on mq and mw sidebars. They are used to control the uniform color with which the results are to be painted. They can be configured for dealing with background or foreground painting. The paint actions depend on the mode of coloring that the user has selected in settings. So the paint logic is more involved. But there is no associated checkbox. The selected color is stored in the highlight settings, which are synchronized in a cookie. All actions are processed by the highlight2 method of the associated Settings object.

Kind: static class of colorpicker
See: ∈ highlight-select-single-color