Skip to content

Commit

Permalink
fix: bad variable reference
Browse files Browse the repository at this point in the history
  • Loading branch information
RaghavaAlajangi committed Dec 9, 2024
1 parent a746873 commit 075fc1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyjibe/head/custom_widgets/mpl_navigation_toolbar_icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ def _icon(self, name, color=None):
impath = cbook._get_data_path('images', name)
if not os.path.exists(impath):
ref = importlib.resources.files("pyjibe.img") / name
with importlib.resources.as_file(ref) as impath:
pm = QtGui.QPixmap(str(impath))
with importlib.resources.as_file(ref) as ref_path:
impath = ref_path
pm = QtGui.QPixmap(str(impath))
pm.setDevicePixelRatio(self.devicePixelRatioF() or 1)
if self.palette().color(self.backgroundRole()).value() < 128:
icon_color = self.palette().color(self.foregroundRole())
Expand Down

0 comments on commit 075fc1b

Please sign in to comment.