reflex
reflex copied to clipboard
rx.color_mode_cond() does not work with rx.theme_panel()
When using rx.theme_panel()
to change between light and dark mode on an app, the rx.color_mode_cond()
does not change between the light and dark images.
An example below only ever shows the reflex_black.svg
even when toggling to dark mode with the rx.theme_panel
.
rx.theme_panel(),
rx.container(
rx.color_mode_cond(
rx.image(src="reflex_black.svg", height="4em"),
rx.image(src="reflex_white.svg", height="4em"),
),
)