feat(ui-iced): implement settings screen with navigation and basic UI elements
Some checks failed
build / checks-matrix (push) Has been cancelled
build / codecov (push) Has been cancelled
docs / docs (push) Has been cancelled
build / checks-build (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-12-26 21:21:58 +05:30
parent 584495453f
commit 2b2e8060e7
6 changed files with 182 additions and 21 deletions

View File

@@ -11,9 +11,12 @@ pub fn main() -> iced::Result {
.with(tracing_subscriber::EnvFilter::from_default_env())
.init();
iced::application(State::new, update, view)
.subscription(|state| match &state.video {
Some(video) => video.subscription_with(state, keyboard_event),
None => keyboard_event(state),
.subscription(|state| {
// Foo
match &state.video {
Some(video) => video.subscription_with(state, keyboard_event),
None => keyboard_event(state),
}
})
.run()
}