theme: 🔨 use dark color for default theme

Signed-off-by: zwPapEr <zw.paper@gmail.com>
This commit is contained in:
zwPapEr 2021-09-13 11:49:03 +08:00 committed by Abin Simon
parent 9f656fdd9d
commit edfc57178e
3 changed files with 15 additions and 15 deletions

View file

@ -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:

View file

@ -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();

View file

@ -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: