fix header sizes; bold phrase name in list

This commit is contained in:
🪞👃🪞 2024-10-26 22:23:17 +03:00
parent 0403d5b54f
commit 6de22691f2
2 changed files with 25 additions and 24 deletions

View file

@ -31,6 +31,7 @@ impl Content for PhrasePool<Tui> {
if let Some(PhrasePoolMode::Rename(phrase, _)) = mode {
if *focused && i == *phrase { row2 = format!("{row2}"); }
};
let row2 = TuiStyle::bold(row2, true);
let bg = if i == self.phrase { color } else { color };
add(&col!(row1, row2).fill_x().bg(bg))?;
if *focused && i == self.phrase { add(&CORNERS)?; }