Skip to content

Commit

Permalink
fixed styling
Browse files Browse the repository at this point in the history
  • Loading branch information
n-poulsen committed Mar 27, 2024
1 parent 7370ae9 commit f2d859b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/napari_deeplabcut/_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def __init__(self, napari_viewer):
self._radio_group = self._form_mode_radio_buttons()

# form color scheme display + color mode selector
self._color_mode_box, self._color_mode_selector = self._form_color_mode_selector()
self._color_grp, self._color_mode_selector = self._form_color_mode_selector()
self._display = ColorSchemeDisplay(parent=self)
self._color_scheme_display = self._form_color_scheme_display(self.viewer)
self._view_scheme_cb.toggled.connect(self._show_color_scheme)
Expand Down Expand Up @@ -1060,7 +1060,7 @@ def on_active_layer_change(self, event) -> None:
* Sets the visibility of the "Color mode" box to True if the selected layer
is a multi-animal one, or False otherwise
"""
self._color_mode_box.setVisible(self._is_multianimal(event.value))
self._color_grp.setVisible(self._is_multianimal(event.value))
menu_idx = -1
if event.value is not None and isinstance(event.value, Points):
menu_idx = self._layer_to_menu.get(event.value, -1)
Expand Down

0 comments on commit f2d859b

Please sign in to comment.