dynamic device activation

This commit is contained in:
🪞👃🪞 2024-06-16 19:13:50 +03:00
parent b73aa8a0dc
commit e4f3942757
9 changed files with 484 additions and 587 deletions

View file

@ -66,7 +66,7 @@ impl Device for Rows {
height: area.height - h
})?;
if self.focused && i == self.focus {
draw_box_styled(buf, result, Some(Style::default().green().dim().bold()))
draw_box_styled(buf, result, Some(Style::default().green().dim().bold()));
}
w = w.max(result.width);
h = h + result.height;
@ -111,7 +111,7 @@ impl Device for Columns {
height: area.height
})?;
if self.focused && i == self.focus {
draw_box_styled(buf, result, Some(Style::default().yellow()))
draw_box_styled(buf, result, Some(Style::default().yellow()));
}
w = w + result.width;
h = h.max(result.height);