Skip to content

Commit

Permalink
Merge pull request #157 from TimMonko/fix-bad-logo-change
Browse files Browse the repository at this point in the history
Fix broken logo change
  • Loading branch information
TimMonko authored Jan 8, 2025
2 parents c5bf2f3 + 441ab37 commit f091133
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/napari_ndev/widgets/_ndev_container.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

from pathlib import Path
from typing import TYPE_CHECKING

from magicclass.widgets import (
Expand Down Expand Up @@ -38,10 +39,10 @@ def __init__(self, viewer: napari.viewer.Viewer = None):
"""
super().__init__(labels=False)

self.min_width = 700 # TODO: remove this hardcoded value
self.min_width = 600 # TODO: remove this hardcoded value
self._viewer = viewer if viewer is not None else None

_logo_path = r'resources\nDev-logo-small.png'
_logo_path = Path(__file__).parent.parent / 'resources' / 'nDev-logo-small.png'
self._logo_label = Label(
value='<h1 style="text-align: center;">'
f'<img src="{_logo_path}"/>'
Expand Down

0 comments on commit f091133

Please sign in to comment.