tui: new design (Catppuccin Mocha, header, framed input, 3-col popup, sessions picker, /lsp panel)
This commit is contained in:
1 parent
7e29515821
commit
79bd3b8ea7
7 files changed
+907
-462
No files matched your search
@@ -61,9 +61,8 @@ fn dur(d: Duration) -> String {
|
||||
fn glyph(s: &Status, frame: usize) -> &'static str {
|
||||
let th = theme::t();
|
||||
match s {
|
||||
Status::Running if th.sym.ok == "+" => ["-", "\\", "|", "/"][frame % 4],
|
||||
Status::Running => ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"][frame % 10],
|
||||
Status::Done => th.sym.ok,
|
||||
Status::Running => th.spin(frame),
|
||||
Status::Done => th.sym.done,
|
||||
_ => th.sym.err,
|
||||
}
|
||||
}
|
||||
@@ -239,7 +238,7 @@ mod tests {
|
||||
assert!(
|
||||
text(&l[0]).starts_with(" ⠋ 1 explore ") && text(&l[0]).ends_with(" 1m12s 8c 41k")
|
||||
);
|
||||
assert!(text(&l[1]).starts_with(" ✓ 2 explore "), "{}", text(&l[1]));
|
||||
assert!(text(&l[1]).starts_with(" ● 2 explore "), "{}", text(&l[1]));
|
||||
assert!(text(&l[0]).contains('…'));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user