8000 [bugfix] update Point size slider on selection (current_size event) by psobolewskiPhD · Pull Request #7137 · napari/napari · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[bugfix] update Point size slider on selection (current_size event) # 8000 7137

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

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

psobolewskiPhD
Copy link
Member

References and relevant issues

Closes #6115

Description

In this PR i add a connection to the current_size event, so that the slider is updated for the current size of a selected point.
I also add a test for this case.

@psobolewskiPhD psobolewskiPhD added the bugfix PR with bugfix label Jul 29, 2024
@github-actions github-actions bot added tests Something related to our tests qt Relates to qt labels Jul 29, 2024
@psobolewskiPhD psobolewskiPhD added this to the 0.5 milestone Jul 29, 2024
Copy link
codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.88%. Comparing base (382964a) to head (f6cd8e4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7137      +/-   ##
==========================================
- Coverage   92.98%   92.88%   -0.10%     
==========================================
  Files         619      619              
  Lines       56653    56666      +13     
==========================================
- Hits        52677    52633      -44     
- Misses       3976     4033      +57     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor
@brisvag brisvag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when multiple differently-sized points are selected?

Copy link
Member
@jni jni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@brisvag i am only guessing but I presume that the last-selected point "wins". Which I think is about as correct as can be. eg programs like Pages will blank out the font selection box when you select text containing multiple fonts — then selecting a font applies it to the whole text — but we don't really have a way to visually indicate this.

This reminds me of the old issue of changing the slider with no points selected — maybe we should think of some visual indicators on the sliders that would show "this applies to the next point" vs "this applies to the current selection" vs "this doesn't represent the current selection but you can drag to set it for the current selection"...

@jni jni modified the milestones: 0.5, 0.5.2 Jul 29, 2024
@jni jni added the ready to merge Last chance for comments! Will be merged in ~24h label Jul 29, 2024
@psobolewskiPhD
Copy link
Member Author

@brisvag The size and color shown when selecting multiple points reflect the state of the last previously selected point, so typically the last one placed/moved.

@brisvag
Copy link
Contributor
brisvag commented Jul 30, 2024

@jni it's this conversation all over again :P

@jni jni merged commit c7e0384 into napari:main Aug 1, 2024
36 checks passed
@github-actions github-actions bot removed the ready to merge Last chance for comments! Will be merged in ~24h label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR with bugfix qt Relates to qt tests Something related to our tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selecting points of different sizes does not update the point size slider
3 participants
0