From: Roland Mas <roland.mas@entierement.net>
Date: Fri, 9 May 2025 00:13:25 +0200
Subject: Look for style.qss in two places to help with testing

---
 napari_plugin_manager/qt_plugin_dialog.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/napari_plugin_manager/qt_plugin_dialog.py b/napari_plugin_manager/qt_plugin_dialog.py
index 43d1821..ac2fe47 100644
--- a/napari_plugin_manager/qt_plugin_dialog.py
+++ b/napari_plugin_manager/qt_plugin_dialog.py
@@ -39,7 +39,8 @@ from napari_plugin_manager.qt_package_installer import NapariInstallerQueue
 from napari_plugin_manager.utils import is_conda_package
 
 # Scaling factor for each list widget item when expanding.
-STYLES_PATH = Path(__file__).parent / 'styles.qss'
+STYLES_PATHS = [ Path(__file__).parent / 'styles.qss',
+                 Path(__file__).parent.parent / 'styles.qss' ]
 DISMISS_WARN_PYPI_INSTALL_DLG = False
 
 
@@ -202,7 +203,7 @@ class QtPluginDialog(BaseQtPluginDialog):
         get_settings().appearance.events.theme.connect(self._update_theme)
 
     def _update_theme(self, event):
-        stylesheet = get_current_stylesheet([STYLES_PATH])
+        stylesheet = get_current_stylesheet([p for p in STYLES_PATHS if p.exists()])
         self.setStyleSheet(stylesheet)
 
     def _add_installed(self, pkg_name=None):
