You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
When changing the color of an existing object with the color wheel, dragging the mouse creates a ton of history elements, presumably one for every color your mouse dragged over. This uselessly fills history and is painful to revert with ctrl+z.
It is not that easy in this case: there's is no signal for "user is 'dragging' in color widget".
And to make it worse, the widget is deprecated in Gtk :/
A workaround, is calling the color wheel from the outline/fill color, for some reason here does not generate steps in the history stack. I show you here, but we definitely need a working HSV color selection solution.
Well, I tested the new ColorChooser, but it has the same problem: I can't detect when user press mouse button (and drag it) over the specific color widget (the deprecated wheel or current plane).
So my proposal it to do our own widget - or wait for Gtk team to accept our possible patch.
Other possible solution: somehow we kidnap events from child widget of (deprecated) GtkColorSelection or (current) GtkColorChooserWidget to our parent.
This way we could process/detect left-mouse button dragging (beginning and ending) to make a Passiv action that group those several actions of color changing into a single one.
However I didn't find a way to steal those Gtk event priority to parent widget.
What if Apply and Cancel buttons are added to the color dialog instead. That way when a user accepts changes from the dialog only one history is recorded, thus, fixing the inconvenient undo behavior.
Hmm... I thought that preview bar on the color dialog could be sufficient but I didn't realize the feedback with the surrounding color on the canvas would be missed.
Anyway, mine's a bad idea. Thanks for the feedback.
I haven't checked the code, but it seems to me that we can set a special flag before opening the Color dialog and not save history if this flag is set.
Activity
morevnaproject commentedon Nov 8, 2017
Possibly we can have a checkbox, which tells if Synfig should dynamically update workarea during modifications in Colors window.
caryoscelus commentedon Nov 9, 2017
This can be better fixed by joining color change action sequence into one action. Not sure how easy that would be, though.
morevnaproject commentedon Nov 10, 2019
@rodolforg Can we solve that in the same way as you did in #982? (75a93af)
rodolforg commentedon Nov 16, 2019
It is not that easy in this case: there's is no signal for "user is 'dragging' in color widget".
And to make it worse, the widget is deprecated in Gtk :/
morevnaproject commentedon Nov 19, 2019
Oh, so replacing a color widget would be a higher priority.
I wonder, what Gtk offer intead of deprecated widget?
ebarranco commentedon Dec 28, 2019
A workaround, is calling the color wheel from the outline/fill color, for some reason here does not generate steps in the history stack. I show you here, but we definitely need a working HSV color selection solution.
rodolforg commentedon Mar 31, 2020
Well, I tested the new ColorChooser, but it has the same problem: I can't detect when user press mouse button (and drag it) over the specific color widget (the deprecated wheel or current plane).
So my proposal it to do our own widget - or wait for Gtk team to accept our possible patch.
Other possible solution: somehow we kidnap events from child widget of (deprecated) GtkColorSelection or (current) GtkColorChooserWidget to our parent.
This way we could process/detect left-mouse button dragging (beginning and ending) to make a Passiv action that group those several actions of color changing into a single one.
However I didn't find a way to steal those Gtk event priority to parent widget.
Keyikedalube commentedon Mar 24, 2021
What if Apply and Cancel buttons are added to the color dialog instead. That way when a user accepts changes from the dialog only one history is recorded, thus, fixing the inconvenient undo behavior.
rodolforg commentedon Mar 24, 2021
It's a solution, but you miss the visual feedback in image itself that helps you to properly choose a new color
Keyikedalube commentedon Mar 24, 2021
Hmm... I thought that preview bar on the color dialog could be sufficient but I didn't realize the feedback with the surrounding color on the canvas would be missed.
Anyway, mine's a bad idea. Thanks for the feedback.
rodolforg commentedon Mar 24, 2021
It isn't a bad idea.
Somebody needs to decide what is priority :) Ctrl+Z convenience or better visual choice
ice0 commentedon Mar 25, 2021
I haven't checked the code, but it seems to me that we can set a special flag before opening the Color dialog and not save history if this flag is set.