As a first step towards color palette, each document window needs a current color widget. It may be placed e.g. in the bottom left corner instead of the "scale when resizing window" button which is to be removed (this must be a global setting in PreferencesDialog). Here's what we need to do:
- In the fill&style dialog, in "Apply to" list, add "All new objects". This will be the current color of the program (actually, two colors, for fill and for stroke, and actually not only colors but other style properties as well, but this is outside of the scope of the color widget). This current color, if not overriden by narrower per-tool current colors (such as "all shape tools", "all rects" etc.) must determine the color of all newly created objects. (Or can we just remove all per-tool currents, only leaving "All new objects"?)
- The widget itself is just two small concentric rectangles; the inner displays fill color, the outer, stroke color. If there is transparency, a checkered background should show through. It must also display gradients and other fill types. (can we use a small arena for this, with the actual SVG template rendered with the current style?)
- The dropper tool must pick the current fill color from the canvas, or current stroke color when clicked with ctrl.
- Click on the current color widget must bring up the fill&stroke dialog with fill tab. Ctrl-click must show the stroke tab.