Track focus in room
This commit is contained in:
parent
147c3eaf92
commit
8703a62887
4 changed files with 33 additions and 6 deletions
|
|
@ -12,7 +12,8 @@ use crate::ui::widgets::list::{List, ListState};
|
|||
use crate::ui::widgets::text::Text;
|
||||
use crate::ui::widgets::BoxedWidget;
|
||||
|
||||
pub fn widget(state: &ListState<String>, joined: &Joined) -> BoxedWidget {
|
||||
pub fn widget(state: &ListState<String>, joined: &Joined, focus: bool) -> BoxedWidget {
|
||||
// TODO Handle focus
|
||||
let mut list = state.widget();
|
||||
render_rows(&mut list, joined);
|
||||
list.into()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue