New: color picker!
With a click on the 'COL' buttons (the ones showing RGB) a menu pops up with three colorpicking fields and a palette. The fields are the three planar intersections of a HSV cube, each allowing choosing in the field without the field changing. The palette is 'modal' unfortunately (couldn't find a simple working other method) where the button "paste to color" denotes the state that click in palette copies to edited color, and "copy to palette" means the active color is copied into the palette... Todo: - saving of palette in file - decide whether ESC leaves without changes...
This commit is contained in:
@@ -200,6 +200,8 @@ struct uiBlock {
|
||||
/* interface.c */
|
||||
extern void ui_check_but(uiBut *but);
|
||||
extern double ui_get_but_val(uiBut *but);
|
||||
extern void ui_get_but_vectorf(uiBut *but, float *vec);
|
||||
extern void ui_set_but_vectorf(uiBut *but, float *vec);
|
||||
extern void ui_autofill(uiBlock *block);
|
||||
extern void ui_graphics_to_window(int win, float *x, float *y);
|
||||
extern void ui_window_to_graphics(int win, float *x, float *y);
|
||||
|
||||
Reference in New Issue
Block a user