mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
dynamic device activation
This commit is contained in:
parent
b73aa8a0dc
commit
e4f3942757
9 changed files with 484 additions and 587 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue