display arranger size; io selector pt.1

This commit is contained in:
🪞👃🪞 2024-10-30 21:58:45 +02:00
parent 9531d0e09d
commit 426d2ab89d
3 changed files with 82 additions and 73 deletions

View file

@ -25,14 +25,14 @@ impl Content for PhrasePool<Tui> {
length.focus = Some(*focus);
}
}
let length = length.align_e().fill_x();
let row1 = lay!(format!(" {i}").align_w().fill_x(), length).fill_x();
let length = length.align_e().fill_x();
let row1 = lay!(format!(" {i}").align_w().fill_x(), length).fill_x();
let mut row2 = format!(" {name}");
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 };
let bg = if i == self.phrase { color } else { color };
add(&col!(row1, row2).fill_x().bg(bg))?;
if *focused && i == self.phrase { add(&CORNERS)?; }
Ok(())