Hello micheus,
Thanks for the feedback. I'll look at trying to add a color preview when the mouse button is held down.
I think the palette window as it is is pretty good. I used wings_palette.erl as a reference to how the floating windows in wings are written, since it's one of the simpler modules in the wings source. It helped a lot in my case to get a floating window plugin working, so a module like wings_palette.erl has some advantages to be small and simple especially for future plugin developers. As for palette editing, I'll have to think if there is any ideas for the color dialog when "edit" is pushed.
When I modified the #st{} pal list I was impressed how the palette window reacts right away to the change in state, it makes the two color windows seem more integrated even when they are different windows.
I should mention I'm probably going to make more color related plugins as well, at least one more floating window tool after this one.
I can try adding the palette import/export stuff right away to the menu of wings_palette.erl, but I don't know how to make submenus using wings_menu:popup_menu yet. I first tried by doing a second psend/popup_menu call after the first psend/popup_menu in a handle_event. But nothing appears after the click but it does appear after a second right click, but I don't think I'm doing it right.
Thanks for the feedback. I'll look at trying to add a color preview when the mouse button is held down.
I think the palette window as it is is pretty good. I used wings_palette.erl as a reference to how the floating windows in wings are written, since it's one of the simpler modules in the wings source. It helped a lot in my case to get a floating window plugin working, so a module like wings_palette.erl has some advantages to be small and simple especially for future plugin developers. As for palette editing, I'll have to think if there is any ideas for the color dialog when "edit" is pushed.
When I modified the #st{} pal list I was impressed how the palette window reacts right away to the change in state, it makes the two color windows seem more integrated even when they are different windows.
I should mention I'm probably going to make more color related plugins as well, at least one more floating window tool after this one.
I can try adding the palette import/export stuff right away to the menu of wings_palette.erl, but I don't know how to make submenus using wings_menu:popup_menu yet. I first tried by doing a second psend/popup_menu call after the first psend/popup_menu in a handle_event. But nothing appears after the click but it does appear after a second right click, but I don't think I'm doing it right.