Skip to content

Commit a517f2a

Browse files
committed
Fix wrong/outdated color config references
1 parent 9aa4ac9 commit a517f2a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

book/coloring_and_theming.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,10 @@ This is the current list of primitives. Not all of these are configurable. The c
286286
| `binary` | Color::White.normal() | \* |
287287
| `block` | Color::White.normal() | \* |
288288
| `bool` | Color::White.normal() | \* |
289-
| `cellpath` | Color::White.normal() | \* |
289+
| `cell-path` | Color::White.normal() | \* |
290290
| `condition` | | |
291291
| `custom` | | |
292-
| `date` | Color::White.normal() | \* |
292+
| `datetime` | Color::White.normal() | \* |
293293
| `duration` | Color::White.normal() | \* |
294294
| `expression` | | |
295295
| `filesize` | Color::White.normal() | \* |
@@ -327,7 +327,7 @@ Here's a small example of changing some of these values.
327327
$env.config.color_config.separator = purple
328328
$env.config.color_config.leading_trailing_space_bg = "#ffffff"
329329
$env.config.color_config.header = gb
330-
$env.config.color_config.date = wd
330+
$env.config.color_config.datetime = wd
331331
$env.config.color_config.filesize = c
332332
$env.config.color_config.row_index = cb
333333
$env.config.color_config.bool = red
@@ -338,7 +338,7 @@ $env.config.color_config.float = red
338338
$env.config.color_config.string = white
339339
$env.config.color_config.nothing = red
340340
$env.config.color_config.binary = red
341-
$env.config.color_config.cellpath = cyan
341+
$env.config.color_config.cell-path = cyan
342342
$env.config.color_config.hints = dark_gray
343343
```
344344

@@ -352,7 +352,7 @@ $env.config.color_config.header = { # this is like PR #489
352352
bg: "#ffb900", # note, commas are not required, it could also be all on one line
353353
attr: bli # note, there are no quotes around this value. it works with or without quotes
354354
}
355-
$env.config.color_config.date = "#75507B"
355+
$env.config.color_config.datetime = "#75507B"
356356
$env.config.color_config.filesize = "#729fcf"
357357
$env.config.color_config.row_index = {
358358
# note, that this is another way to set only the foreground, no need to specify bg and attr
@@ -527,7 +527,7 @@ let base16_theme = {
527527
separator: $base03
528528
leading_trailing_space_bg: $base04
529529
header: $base0b
530-
date: $base0e
530+
datetime: $base0e
531531
filesize: $base0d
532532
row_index: $base0c
533533
bool: $base08
@@ -538,7 +538,7 @@ let base16_theme = {
538538
string: $base04
539539
nothing: $base08
540540
binary: $base08
541-
cellpath: $base08
541+
cell-path: $base08
542542
hints: dark_gray
543543
544544
# shape_garbage: { fg: $base07 bg: $base08 attr: b } # base16 white on red

0 commit comments

Comments
 (0)