diff --git a/src/frontend/components/nav.rs b/src/frontend/components/nav.rs index 47642aa..3a9d0ef 100644 --- a/src/frontend/components/nav.rs +++ b/src/frontend/components/nav.rs @@ -126,7 +126,13 @@ pub fn Nav() -> impl IntoView { ().is_dark() } + checked=move || { + if expect_context::().is_light() { + "checked" + } else { + "" + } + } on:click=move |_| { expect_context::().toggle() } /> Dark