File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def __init__(
42
42
super ().__init__ (parent = parent )
43
43
self .viewer = napari_viewer
44
44
self .napari_theme_style_sheet = style_sheet_from_theme (
45
- get_theme (napari_viewer .theme , as_dict = False )
45
+ get_theme (napari_viewer .theme )
46
46
)
47
47
48
48
# Sets figure.* style
@@ -84,7 +84,7 @@ def _on_napari_theme_changed(self, event: Event) -> None:
84
84
Event that triggered the callback.
85
85
"""
86
86
self .napari_theme_style_sheet = style_sheet_from_theme (
87
- get_theme (event .value , as_dict = False )
87
+ get_theme (event .value )
88
88
)
89
89
self ._replace_toolbar_icons ()
90
90
@@ -97,7 +97,7 @@ def _napari_theme_has_light_bg(self) -> bool:
97
97
bool
98
98
True if theme's background colour has hsl lighter than 50%, False if darker.
99
99
"""
100
- theme = napari .utils .theme .get_theme (self .viewer .theme , as_dict = False )
100
+ theme = napari .utils .theme .get_theme (self .viewer .theme )
101
101
_ , _ , bg_lightness = theme .background .as_hsl_tuple ()
102
102
return bg_lightness > 0.5
103
103
You can’t perform that action at this time.
0 commit comments