Skip to content

Commit bff378d

Browse files
committed
Remove as_dict kwarg
1 parent 0501fab commit bff378d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/napari_matplotlib/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
super().__init__(parent=parent)
4343
self.viewer = napari_viewer
4444
self.napari_theme_style_sheet = style_sheet_from_theme(
45-
get_theme(napari_viewer.theme, as_dict=False)
45+
get_theme(napari_viewer.theme)
4646
)
4747

4848
# Sets figure.* style
@@ -84,7 +84,7 @@ def _on_napari_theme_changed(self, event: Event) -> None:
8484
Event that triggered the callback.
8585
"""
8686
self.napari_theme_style_sheet = style_sheet_from_theme(
87-
get_theme(event.value, as_dict=False)
87+
get_theme(event.value)
8888
)
8989
self._replace_toolbar_icons()
9090

@@ -97,7 +97,7 @@ def _napari_theme_has_light_bg(self) -> bool:
9797
bool
9898
True if theme's background colour has hsl lighter than 50%, False if darker.
9999
"""
100-
theme = napari.utils.theme.get_theme(self.viewer.theme, as_dict=False)
100+
theme = napari.utils.theme.get_theme(self.viewer.theme)
101101
_, _, bg_lightness = theme.background.as_hsl_tuple()
102102
return bg_lightness > 0.5
103103

0 commit comments

Comments
 (0)