move and turn into spans

This commit is contained in:
Jana Dönszelmann 2026-04-01 14:01:08 +02:00
parent bedaa49754
commit 9f401bda53
No known key found for this signature in database
13 changed files with 1262 additions and 774 deletions

View file

@ -5,7 +5,7 @@ use crossterm::{
},
terminal::{EnterAlternateScreen, LeaveAlternateScreen},
};
use ratatui_themes::{Theme, ThemeName};
use ratatui_themes::{Color, Theme, ThemeName};
use std::{
fs::{self, DirEntry},
io::{self, Stdout},
@ -493,6 +493,7 @@ impl App {
fn styles(&self) -> Styles {
let palette = self.theme.palette();
let default = Style::new().fg(palette.fg).bg(palette.bg);
let highlighted = Style::new().fg(palette.accent).bg(palette.selection);
let border = Style::new().fg(palette.fg).bg(palette.bg);
@ -505,6 +506,10 @@ impl App {
border,
border_highlighted,
error,
literal: palette.secondary,
faded: palette.muted,
delimiter: palette.accent,
}
}
@ -529,6 +534,10 @@ pub struct Styles {
border: Style,
border_highlighted: Style,
error: Style,
literal: Color,
faded: Color,
delimiter: Color,
}
impl Widget for &mut App {