move and turn into spans
This commit is contained in:
parent
bedaa49754
commit
9f401bda53
13 changed files with 1262 additions and 774 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue