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