Skip to content

Commit 2f629fb

Browse files
committed
feat: add bright colour options, change punctuation default
1 parent 0d118d3 commit 2f629fb

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

src/theme/default_theme.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl UiStyles {
7878
},
7979
},
8080

81-
punctuation: Black.bold(),
81+
punctuation: DarkGray.bold(),
8282
date: Blue.normal(),
8383
inode: Purple.normal(),
8484
blocks: Cyan.normal(),

src/theme/lsc.rs

+18-1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,15 @@ impl<'var> Pair<'var> {
118118
"35" => style = style.fg(Purple),
119119
"36" => style = style.fg(Cyan),
120120
"37" => style = style.fg(White),
121+
// Bright foreground colours
122+
"90" => style = style.fg(DarkGray),
123+
"91" => style = style.fg(BrightRed),
124+
"92" => style = style.fg(BrightGreen),
125+
"93" => style = style.fg(BrightYellow),
126+
"94" => style = style.fg(BrightBlue),
127+
"95" => style = style.fg(BrightPurple),
128+
"96" => style = style.fg(BrightCyan),
129+
"97" => style = style.fg(BrightGray),
121130
"38" => if let Some(c) = parse_into_high_colour(&mut iter) { style = style.fg(c) },
122131

123132
// Background colours
@@ -129,8 +138,16 @@ impl<'var> Pair<'var> {
129138
"45" => style = style.on(Purple),
130139
"46" => style = style.on(Cyan),
131140
"47" => style = style.on(White),
141+
// Bright background colours
142+
"100" => style = style.on(DarkGray),
143+
"101" => style = style.on(BrightRed),
144+
"102" => style = style.on(BrightGreen),
145+
"103" => style = style.on(BrightYellow),
146+
"104" => style = style.on(BrightBlue),
147+
"105" => style = style.on(BrightPurple),
148+
"106" => style = style.on(BrightCyan),
149+
"107" => style = style.on(BrightGray),
132150
"48" => if let Some(c) = parse_into_high_colour(&mut iter) { style = style.on(c) },
133-
134151
_ => {/* ignore the error and do nothing */},
135152
}
136153
}

0 commit comments

Comments
 (0)