Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the marker color cycle action to the timeline dock #1387

Merged
merged 1 commit into from Dec 15, 2022

Conversation

bmatherly
Copy link
Member

This allows the action to work even when the markers dock is not visible. Also, the action is applied to the marker under the cursor instead of the selected marker.

As observed here:
https://forum.shotcut.org/t/please-test-the-beta-for-version-22-12/36806/5

This allows the action to work even when the markers dock is not
visible. Also, the action is applied to the marker under the cursor
instead of the selected marker.

As observed here:
https://forum.shotcut.org/t/please-test-the-beta-for-version-22-12/36806/5
@ddennedy
Copy link
Member

ddennedy commented Dec 15, 2022

Small problem: in the Markers panel, when the list box has focus, cursor up/down, and choose Cycle Marker Color from the menu; it changes the color of the last marker row I clicked to give the list box focus instead of the current one. This then gets into the whole issue of current vs. selected in GUI lists. It looks like I figured out some way to synchronize those in Playlists. Not a big deal; just want to let you know.

@ddennedy ddennedy added this to the v22.12 milestone Dec 15, 2022
@ddennedy ddennedy merged commit d35cad1 into mltframework:master Dec 15, 2022
@bmatherly
Copy link
Member Author

This then gets into the whole issue of current vs. selected in GUI lists.

This has nothing to do with current/selected because the action operates on neither. The action only operates on the marker under the timeline cursor. In your example, the reason that a previously selected maker changed is because you had not moved the timeline cursor off of it.

As another example, follow these steps:

  1. Select a maker in the marker panel
  2. Press the right arrow to step the player by one frame
  3. Press CTL-ALT-M (or choose the cycle action from the menu)
    Nothing will happen because there is no marker under the cursor.
    This behavior is consistent with Delete (CTL-SHIFT-M)

We could change the text in the actions to "Delete marker under cursor" and "Toggle marker color under cursor". But that sounds confusing.

Another option is that we could remove those two actions from the Marker menu. They would still be in the Timeline menu - which might make more sense since they are associated with the timeline cursor.

@ddennedy
Copy link
Member

Oh yeah, you’re right, we’ve long since introduced another context or target of an action. Aren’t UIs fun? I think the overall behavior with this change closest matches what people will want and expect.

@bmatherly bmatherly deleted the cycle_marker_color2 branch November 6, 2023 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants