feat(ui-iced): implement settings screen with navigation and basic UI elements
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user