make icon to static methods
This commit is contained in:
parent
84d3a2bb97
commit
e10cf07506
@ -190,7 +190,7 @@ class ColorModeSwitch(Switch):
|
||||
class ColorModeNamespace(Var):
|
||||
"""Namespace for color mode components."""
|
||||
|
||||
icon = color_mode_icon
|
||||
icon = staticmethod(color_mode_icon)
|
||||
button = staticmethod(ColorModeIconButton.create)
|
||||
switch = staticmethod(ColorModeSwitch.create)
|
||||
|
||||
|
@ -403,7 +403,7 @@ class ColorModeSwitch(Switch):
|
||||
...
|
||||
|
||||
class ColorModeNamespace(Var):
|
||||
icon = color_mode_icon
|
||||
icon = staticmethod(color_mode_icon)
|
||||
button = staticmethod(ColorModeIconButton.create)
|
||||
switch = staticmethod(ColorModeSwitch.create)
|
||||
|
||||
|
@ -262,7 +262,7 @@ def get_reload_dirs() -> list[Path]:
|
||||
break
|
||||
|
||||
reload_dirs = [module_path]
|
||||
return reload_dirs
|
||||
return list(map(Path.absolute, reload_dirs))
|
||||
|
||||
|
||||
def run_uvicorn_backend(host, port, loglevel: LogLevel):
|
||||
|
Loading…
Reference in New Issue
Block a user