Color picker button (color selector widget) needs to be context-aware
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Medium
|
Unassigned |
Bug Description
Extension dialogs can reuse the color selector widget from Fill&Stroke. The newly added button to pick a color (special 'one-time' usage of the dropper tool) is also active in the extensions dialog, but instead of picking a color value and updating the color values in the dialog, all currently selected objects on-canvas are modified instead.
Sample test case:
1) draw a few shapes with varying colors, select them
2) open 'Filters > Shadows and Glows > Drop Shadow…'
3) on the 'Blur Color' tab, click on the color picker button to pick a color from the current drawing to be used for the drop shadow
Expected result:
A color from the current drawing is picked, and the values are filled into the color selector widget. No objects on-canvas are modified.
Actual result:
The color of the currently selected objects is modified.
Either the color picker button needs to be disabled in contexts where it is not supposed to edit a selection, or it needs to be enhanced to fill the picked color into the color selector widget, instead of modifying objects in the current selection directly.
The same problem applies to other places where the color selector widget is reused, e.g.
- Document properties: page background, grid & guides color,
- Preferences: default grid color, node tool path outline,
Confirmed, the color should not be applied before the user clicks on the Apply button.