File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1414
1515from .util import Interval , from_napari_css_get_size_of
1616
17- # Icons modified from
18- # https://github.com/matplotlib/matplotlib/tree/main/lib/matplotlib/mpl-data/images
19- ICON_ROOT = Path (__file__ ).parent / "icons"
2017__all__ = ["BaseNapariMPLWidget" , "NapariMPLWidget" ]
2118
2219
@@ -122,11 +119,15 @@ def _theme_has_light_bg(self) -> bool:
122119 def _get_path_to_icon (self ) -> Path :
123120 """
124121 Get the icons directory (which is theme-dependent).
122+
123+ Icons modified from
124+ https://github.com/matplotlib/matplotlib/tree/main/lib/matplotlib/mpl-data/images
125125 """
126+ icon_root = Path (__file__ ).parent / "icons"
126127 if self ._theme_has_light_bg ():
127- return ICON_ROOT / "black"
128+ return icon_root / "black"
128129 else :
129- return ICON_ROOT / "white"
130+ return icon_root / "white"
130131
131132 def _replace_toolbar_icons (self ) -> None :
132133 """
You can’t perform that action at this time.
0 commit comments