reflex icon indicating copy to clipboard operation
reflex copied to clipboard

rx.color_mode_cond() does not work with rx.theme_panel()

Open tgberkeley opened this issue 11 months ago β€’ 0 comments

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"),
    ),
)

tgberkeley avatar Mar 12 '24 18:03 tgberkeley