Skip to content

Color wheel fills history too much #451

Open

Description

@zozorg

Synfig version & platform:
linux 1.3.4

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.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. morevnaproject commented on Nov 8, 2017

    @morevnaproject
    Member

    Possibly we can have a checkbox, which tells if Synfig should dynamically update workarea during modifications in Colors window.

  2. caryoscelus commented on Nov 9, 2017

    @caryoscelus
    Contributor

    This can be better fixed by joining color change action sequence into one action. Not sure how easy that would be, though.

  3. morevnaproject commented on Nov 10, 2019

    @morevnaproject
    Member

    @rodolforg Can we solve that in the same way as you did in #982? (75a93af)

  4. rodolforg commented on Nov 16, 2019

    @rodolforg
    Contributor

    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 :/

  5. morevnaproject commented on Nov 19, 2019

    @morevnaproject
    Member

    Oh, so replacing a color widget would be a higher priority.
    I wonder, what Gtk offer intead of deprecated widget?

  6. ebarranco commented on Dec 28, 2019

    @ebarranco

    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.

  7. added this to the v1.4.0 milestone on Mar 29, 2020
  8. rodolforg commented on Mar 31, 2020

    @rodolforg
    Contributor

    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.

  9. modified the milestones: v1.4.0, v1.6.0 on Nov 14, 2020
  10. Keyikedalube commented on Mar 24, 2021

    @Keyikedalube
    Contributor

    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.

  11. rodolforg commented on Mar 24, 2021

    @rodolforg
    Contributor

    It's a solution, but you miss the visual feedback in image itself that helps you to properly choose a new color

  12. Keyikedalube commented on Mar 24, 2021

    @Keyikedalube
    Contributor

    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.

  13. rodolforg commented on Mar 24, 2021

    @rodolforg
    Contributor

    It isn't a bad idea.
    Somebody needs to decide what is priority :) Ctrl+Z convenience or better visual choice

  14. ice0 commented on Mar 25, 2021

    @ice0
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions