mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-13 13:42:34 +00:00
theme: 🔨 use dark color for default theme
Signed-off-by: zwPapEr <zw.paper@gmail.com>
This commit is contained in:
parent
9f656fdd9d
commit
edfc57178e
3 changed files with 15 additions and 15 deletions
|
@ -343,9 +343,9 @@ This is the default theme scheme shipped with `lsd`.
|
|||
user: 230
|
||||
group: 187
|
||||
permission:
|
||||
read: Green
|
||||
write: Yellow
|
||||
exec: Red
|
||||
read: dark_green
|
||||
write: dark_yellow
|
||||
exec: dark_red
|
||||
exec-sticky: 5
|
||||
no-access: 245
|
||||
date:
|
||||
|
|
12
src/color.rs
12
src/color.rs
|
@ -243,12 +243,12 @@ fn to_content_style(ls: &lscolors::Style) -> ContentStyle {
|
|||
},
|
||||
lscolors::style::Color::Fixed(n) => Color::AnsiValue(*n),
|
||||
lscolors::style::Color::Black => Color::Black,
|
||||
lscolors::style::Color::Red => Color::Red,
|
||||
lscolors::style::Color::Green => Color::Green,
|
||||
lscolors::style::Color::Yellow => Color::Yellow,
|
||||
lscolors::style::Color::Blue => Color::Blue,
|
||||
lscolors::style::Color::Magenta => Color::Magenta,
|
||||
lscolors::style::Color::Cyan => Color::Cyan,
|
||||
lscolors::style::Color::Red => Color::DarkRed,
|
||||
lscolors::style::Color::Green => Color::DarkGreen,
|
||||
lscolors::style::Color::Yellow => Color::DarkYellow,
|
||||
lscolors::style::Color::Blue => Color::DarkBlue,
|
||||
lscolors::style::Color::Magenta => Color::DarkMagenta,
|
||||
lscolors::style::Color::Cyan => Color::DarkCyan,
|
||||
lscolors::style::Color::White => Color::White,
|
||||
};
|
||||
let mut style = ContentStyle::default();
|
||||
|
|
|
@ -170,9 +170,9 @@ impl Theme {
|
|||
user: Color::AnsiValue(230), // Cornsilk1
|
||||
group: Color::AnsiValue(187), // LightYellow3
|
||||
permission: Permission {
|
||||
read: Color::Green,
|
||||
write: Color::Yellow,
|
||||
exec: Color::Red,
|
||||
read: Color::DarkGreen,
|
||||
write: Color::DarkYellow,
|
||||
exec: Color::DarkRed,
|
||||
exec_sticky: Color::AnsiValue(5),
|
||||
no_access: Color::AnsiValue(245), // Grey
|
||||
},
|
||||
|
@ -226,9 +226,9 @@ impl Theme {
|
|||
user: 230
|
||||
group: 187
|
||||
permission:
|
||||
read: Green
|
||||
write: Yellow
|
||||
exec: Red
|
||||
read: dark_green
|
||||
write: dark_yellow
|
||||
exec: dark_red
|
||||
exec-sticky: 5
|
||||
no-access: 245
|
||||
date:
|
||||
|
|
Loading…
Reference in a new issue