minor stuff & style

This commit is contained in:
Michael Sippel 2024-09-01 23:56:04 +02:00
parent 7f18fd7755
commit 0a6405b08e
Signed by: senvas
GPG key ID: F96CF119C34B64A6
5 changed files with 33 additions and 38 deletions
examples/tty-02-digit/src

View file

@ -47,7 +47,7 @@ async fn main() {
* / | \
* / | \
* / | \
* u32 EditTree Char
* u64 EditTree Char
* - Editor \
* - Display EditTree
* / | \ - Editor
@ -109,13 +109,13 @@ async fn main() {
.map_item(|p, a| {
a.add_style_back(TerminalStyle::fg_color(((25 * p.x % 255) as u8, 200, 0)))
})
.offset(Vector2::new(5, 0)));
.offset(Vector2::new(5,0)));
let label_str = ctx.read().unwrap().type_term_to_str(&rt_digit.read().unwrap().get_type());
comp.push(
nested_tty::make_label(&label_str)
.map_item(|_pt,atom| atom.add_style_front(TerminalStyle::fg_color((90,90,90))))
.offset(Vector2::new(1, 1)));
.offset(Vector2::new(1,1)));
comp.push(rt_digit
.edittree( &ctx ).get().read().unwrap()