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

Fix theme reference to get image for success_label style #5447

Merged
merged 1 commit into from Jan 5, 2023

Conversation

dalthviz
Copy link
Member

@dalthviz dalthviz commented Dec 26, 2022

Description

Use id instead of name to get the image for success_label. Without that when updating other open PRs with the latest main branch I was getting the following warning interacting with the plugins dialog:

WARNING: Cannot open file '...napari/theme_{{ name }}:/check.svg'

Type of change

  • Bug-fix (non-breaking change which fixes an issue)

How has this been tested?

  • all tests pass with my change
  • I check if my changes works with both PySide and PyQt backends
    as there are small differences between the two Qt bindings.

Final checklist:

  • My PR is the minimum possible work for the desired functionality

@dalthviz dalthviz self-assigned this Dec 26, 2022
@dalthviz dalthviz changed the title Fix theme reference to get image for 'success_label' style Fix theme reference to get image for success_label style Dec 26, 2022
@github-actions github-actions bot added the design Design discussion label Dec 26, 2022
@codecov
Copy link

codecov bot commented Dec 26, 2022

Codecov Report

Merging #5447 (a4776f4) into main (aebf02b) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #5447      +/-   ##
==========================================
- Coverage   89.23%   89.22%   -0.01%     
==========================================
  Files         599      599              
  Lines       50884    50884              
==========================================
- Hits        45405    45401       -4     
- Misses       5479     5483       +4     
Impacted Files Coverage Δ
...layers/image/experimental/_chunked_image_loader.py 88.00% <0.00%> (-8.00%) ⬇️
napari/components/experimental/chunk/_pool.py 85.71% <0.00%> (-7.94%) ⬇️
napari/layers/image/_image_slice.py 97.61% <0.00%> (-2.39%) ⬇️
napari/layers/image/image.py 95.30% <0.00%> (-0.25%) ⬇️
napari/_qt/dialogs/qt_package_installer.py 81.67% <0.00%> (+0.39%) ⬆️
napari/utils/theme.py 92.85% <0.00%> (+0.59%) ⬆️
napari/utils/info.py 81.44% <0.00%> (+1.03%) ⬆️
napari/_qt/__init__.py 56.66% <0.00%> (+6.66%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@psobolewskiPhD psobolewskiPhD left a comment

Choose a reason for hiding this comment

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

Yup, looks like #5124 didn't take into account the changes to themes in #5412.
Thanks!

@psobolewskiPhD psobolewskiPhD merged commit ed67a92 into napari:main Jan 5, 2023
kne42 added a commit to kne42/napari that referenced this pull request Jan 9, 2023
* main:
  Bugfix: Ensure layer._fixed_vertex is set when rotating (napari#5449)
  Bugfix: Fix test_get_system_theme test for `name` to `id` change (napari#5456)
  Add correct `enablement` kwarg to `Split Stack` action, `Convert data type` submenu and `Projections` submenu (napari#5437)
  Add error color to themes and change application close/exit dialogs (napari#5442)
  Add auto canceling previous test after a new PR commit (napari#5453)
  Fix theme id reference to get image for 'success_label' style (napari#5447)
  Decouple changing viewer.theme from changing theme settings/preferences (napari#5143)
  [pre-commit.ci] pre-commit autoupdate (napari#5422)
  Configure `fail_on_no_env` for `tox-gh-actions` (napari#5408)
melissawm pushed a commit to melissawm/napari that referenced this pull request Jan 11, 2023
@Czaki Czaki mentioned this pull request Jun 7, 2023
@Czaki Czaki added this to the 0.4.18 milestone Jun 13, 2023
@Czaki Czaki added bugfix PR with bugfix triaged-0.4.18 To mark PR that is triaged in 0.4.18 release process labels Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR with bugfix design Design discussion triaged-0.4.18 To mark PR that is triaged in 0.4.18 release process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants