File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments