rx.theme: Recognize color_mode in addition to appearance (#2635)

This commit is contained in:
Masen Furer 2024-02-15 18:15:44 -08:00 committed by GitHub
parent 7240f8ee6f
commit b03fa5709f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -162,7 +162,7 @@ class Theme(RadixThemesComponent):
A new component instance.
"""
if color_mode is not None:
props["appearance"] = props.pop("color_mode")
props["appearance"] = color_mode
return super().create(*children, **props)
def _get_imports(self) -> imports.ImportDict: