mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 03:36:42 +01:00
partially fix tests and examples
This commit is contained in:
parent
8dda576c9d
commit
f18e01c220
2 changed files with 20 additions and 20 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue