Difference between revisions of "CurrentColorWidget"

From Inkscape Wiki
Jump to navigation Jump to search
 
m (link fix)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
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:
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 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 widget reflects the current color of the fill and stroke, which are properties local to SPDesktop. It is stored as RGBA values (displaying patterns and gradients may be added later). The widget responds to the [[SetColorSignal]] to change its displayed color.


* 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. Shift+click must show the stroke tab.


* Click on the current color widget must bring up the fill&stroke dialog with fill tab. Ctrl-click must show the stroke tab.
Also each desktop must store the current stroke style (or only width?). Show and make it selectable (drop-down) somewhere near the current color widget.

Revision as of 02:32, 22 January 2006

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:

  • 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 widget reflects the current color of the fill and stroke, which are properties local to SPDesktop. It is stored as RGBA values (displaying patterns and gradients may be added later). The widget responds to the SetColorSignal to change its displayed color.
  • Click on the current color widget must bring up the fill&stroke dialog with fill tab. Shift+click must show the stroke tab.

Also each desktop must store the current stroke style (or only width?). Show and make it selectable (drop-down) somewhere near the current color widget.