partially fix tests and examples

This commit is contained in:
🪞👃🪞 2025-05-10 15:28:42 +03:00
parent 8dda576c9d
commit f18e01c220
2 changed files with 20 additions and 20 deletions

View file

@ -1,4 +1,4 @@
use tengri::{self, input::*, output::*, tui::*, dsl::*};
use tengri::{self, Usually, Perhaps, input::*, output::*, tui::*, dsl::*};
use std::sync::{Arc, RwLock};
use crossterm::event::{*, KeyCode::*};
use crate::ratatui::style::Color;
@ -70,7 +70,7 @@ view!(TuiOut: |self: Example|{
let heading = format!("Example {}/{} in {:?}", index, EXAMPLES.len(), &wh);
let title = Tui::bg(Color::Rgb(60, 10, 10), Push::y(1, Align::n(heading)));
let code = Tui::bg(Color::Rgb(10, 60, 10), Push::y(2, Align::n(format!("{}", src))));
let content = Tui::bg(Color::Rgb(10, 10, 60), View(self, SourceIter::new(src)));
let content = Tui::bg(Color::Rgb(10, 10, 60), View(self, TokenIter::new(src)));
self.1.of(Bsp::s(title, Bsp::n(""/*code*/, content)))
}; {
":title" => Tui::bg(Color::Rgb(60, 10, 10), Push::y(1, Align::n(format!("Example {}/{}:", self.0 + 1, EXAMPLES.len())))).boxed(),