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 user: 230
group: 187 group: 187
permission: permission:
read: Green read: dark_green
write: Yellow write: dark_yellow
exec: Red exec: dark_red
exec-sticky: 5 exec-sticky: 5
no-access: 245 no-access: 245
date: 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::Fixed(n) => Color::AnsiValue(*n),
lscolors::style::Color::Black => Color::Black, lscolors::style::Color::Black => Color::Black,
lscolors::style::Color::Red => Color::Red, lscolors::style::Color::Red => Color::DarkRed,
lscolors::style::Color::Green => Color::Green, lscolors::style::Color::Green => Color::DarkGreen,
lscolors::style::Color::Yellow => Color::Yellow, lscolors::style::Color::Yellow => Color::DarkYellow,
lscolors::style::Color::Blue => Color::Blue, lscolors::style::Color::Blue => Color::DarkBlue,
lscolors::style::Color::Magenta => Color::Magenta, lscolors::style::Color::Magenta => Color::DarkMagenta,
lscolors::style::Color::Cyan => Color::Cyan, lscolors::style::Color::Cyan => Color::DarkCyan,
lscolors::style::Color::White => Color::White, lscolors::style::Color::White => Color::White,
}; };
let mut style = ContentStyle::default(); let mut style = ContentStyle::default();

View file

@ -170,9 +170,9 @@ impl Theme {
user: Color::AnsiValue(230), // Cornsilk1 user: Color::AnsiValue(230), // Cornsilk1
group: Color::AnsiValue(187), // LightYellow3 group: Color::AnsiValue(187), // LightYellow3
permission: Permission { permission: Permission {
read: Color::Green, read: Color::DarkGreen,
write: Color::Yellow, write: Color::DarkYellow,
exec: Color::Red, exec: Color::DarkRed,
exec_sticky: Color::AnsiValue(5), exec_sticky: Color::AnsiValue(5),
no_access: Color::AnsiValue(245), // Grey no_access: Color::AnsiValue(245), // Grey
}, },
@ -226,9 +226,9 @@ impl Theme {
user: 230 user: 230
group: 187 group: 187
permission: permission:
read: Green read: dark_green
write: Yellow write: dark_yellow
exec: Red exec: dark_red
exec-sticky: 5 exec-sticky: 5
no-access: 245 no-access: 245
date: date: