Skip to content

Commit

Permalink
Remove general qss and only leave plugin dialog one
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed May 29, 2024
1 parent ed6f012 commit 5609b1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 591 deletions.
9 changes: 8 additions & 1 deletion napari_plugin_manager/qt_plugin_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import napari.plugins
import napari.resources
import npe2
from napari._qt.qt_resources import QColoredSVGIcon
from napari._qt.qt_resources import QColoredSVGIcon, get_current_stylesheet
from napari._qt.qthreading import create_worker
from napari._qt.widgets.qt_message_popup import WarnPopup
from napari._qt.widgets.qt_tooltip import QtToolTipLabel
Expand Down Expand Up @@ -58,6 +58,7 @@
PYPI = 'PyPI'
ON_BUNDLE = running_as_constructor_app()
IS_NAPARI_CONDA_INSTALLED = is_conda_package('napari')
STYLES_PATH = Path(__file__).parent / 'styles.qss'


class PluginListItem(QFrame):
Expand Down Expand Up @@ -419,6 +420,9 @@ def __init__(self, parent: QWidget, installer: InstallerQueue) -> None:
self.setSortingEnabled(True)
self._remove_list = []

stylesheet = get_current_stylesheet([STYLES_PATH])
self.setStyleSheet(stylesheet)

def _count_visible(self) -> int:
"""Return the number of visible items.
Expand Down Expand Up @@ -956,6 +960,9 @@ def setup_ui(self):

self.packages_filter.setFocus()

stylesheet = get_current_stylesheet([STYLES_PATH])
self.setStyleSheet(stylesheet)

def _update_count_in_label(self):
"""Counts all available but not installed plugins. Updates value."""

Expand Down
Loading

0 comments on commit 5609b1a

Please sign in to comment.