Skip to content

Commit 8fe9fcb

Browse files
committed
fix: updated doc test
1 parent 06760b2 commit 8fe9fcb

12 files changed

+14
-1
lines changed

helix-tui/src/widgets/table.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ impl<'a> Row<'a> {
175175
/// // ...and they can be separated by a fixed spacing.
176176
/// .column_spacing(1)
177177
/// // If you wish to highlight a row in any specific way when it is selected...
178-
/// .highlight_style(Style::default().add_modifier(Modifier::BOLD))
178+
/// .selected_style(Style::default().add_modifier(Modifier::BOLD))
179+
/// // If you wish to highlight a row in any specific way when it is preselected...
180+
/// .highlighted_style(Style::default().add_modifier(Modifier::BOLD))
179181
/// // ...and potentially show a symbol in front of the selection.
180182
/// .highlight_symbol(">>");
181183
/// ```

runtime/themes/autumn.toml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"ui.background" = { bg = "my_gray0" }
1111
"ui.menu" = { fg = "my_white", bg = "my_gray2" }
1212
"ui.menu.selected" = { fg = "my_gray2", bg = "my_gray5" }
13+
"ui.menu.highlighted" = { fg = "my_red", bg = "my_gray2" }
1314
"ui.linenr" = { fg = "my_gray4", bg = "my_gray2" }
1415
"ui.popup" = { bg = "my_gray2" }
1516
"ui.window" = { fg = "my_gray4", bg = "my_gray2" }

runtime/themes/bogster.toml

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262

6363
"ui.menu" = { fg = "#e5ded6bg", bg = "#232d38" }
6464
"ui.menu.selected" = { bg = "#313f4e" }
65+
"ui.menu.highlighted" = { fg = "#dcb659" }
6566

6667
"warning" = "#dc7759"
6768
"error" = "#dc597f"

runtime/themes/dracula.toml

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"ui.linenr.selected" = { fg = "foreground" }
3030
"ui.menu" = { fg = "foreground", bg = "background_dark" }
3131
"ui.menu.selected" = { fg = "cyan", bg = "background_dark" }
32+
"ui.menu.highlighted" = { fg = "cyan" }
3233
"ui.popup" = { fg = "foreground", bg = "background_dark" }
3334
"ui.selection" = { bg = "secondary_highlight" }
3435
"ui.selection.primary" = { bg = "primary_highlight" }

runtime/themes/gruvbox.toml

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"ui.menu" = { fg = "fg1", bg = "bg2" }
5555
"ui.menu.selected" = { fg = "bg2", bg = "blue1", modifiers = ["bold"] }
5656
"ui.virtual.whitespace" = "bg2"
57+
"ui.menu.highlighted" = { fg = "green1" }
5758

5859
"diagnostic" = { modifiers = ["underlined"] }
5960

runtime/themes/ingrid.toml

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
# "ui.cursor.match" # TODO might want to override this because dimmed is not widely supported
6060
"ui.menu" = { fg = "#7B91B3", bg = "#F3EAE9" }
6161
"ui.menu.selected" = { fg = "#D74E50", bg = "#F3EAE9" }
62+
"ui.menu.highlighted" = { fg = "#D74E50" }
6263

6364
"warning" = "#D4A520"
6465
"error" = "#D74E50"

runtime/themes/monokai.toml

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"ui.help" = { bg = "widget" }
6262
"ui.menu" = { bg = "widget" }
6363
"ui.menu.selected" = { bg = "#414339" }
64+
"ui.menu.highlighted" = { fg = "#F92672" }
6465

6566
"ui.cursor" = { fg = "cursor", modifiers = ["reversed"] }
6667
"ui.cursor.primary" = { fg = "cursor", modifiers = ["reversed"] }

runtime/themes/nord.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"ui.menu" = { fg = "nord6", bg = "#232d38" }
77
"ui.menu.selected" = { fg = "nord8", bg = "nord2" }
88
"ui.virtual.whitespace" = "gray"
9+
"ui.menu.highlighted" = { fg = "nord8" }
910

1011
"info" = "nord8"
1112
"hint" = "nord8"

runtime/themes/onedark.toml

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ diagnostic = { modifiers = ["underlined"] }
7575
"ui.menu" = { fg = "white", bg = "gray" }
7676
"ui.menu.selected" = { fg = "black", bg = "blue" }
7777
"ui.menu.scroll" = { fg = "white", bg = "light-gray" }
78+
"ui.menu.highlighted" = { fg = "red" }
7879

7980
[palette]
8081

runtime/themes/rose_pine.toml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"ui.background" = { bg = "base" }
55
"ui.menu" = { fg = "text", bg = "overlay" }
66
"ui.menu.selected" = { fg = "iris", bg = "surface" }
7+
"ui.menu.highlighted" = { fg = "iris"}
78
"ui.linenr" = {fg = "subtle" }
89
"ui.liner.selected" = "highlightOverlay"
910
"ui.selection" = { bg = "highlight" }

runtime/themes/snazzy.toml

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"ui.linenr.selected" = { fg = "foreground" }
3131
"ui.menu" = { fg = "foreground", bg = "background_dark" }
3232
"ui.menu.selected" = { fg = "cyan", bg = "background_dark" }
33+
"ui.menu.highlighted" = { fg = "cyan" }
3334
"ui.popup" = { fg = "foreground", bg = "background_dark" }
3435
"ui.selection" = { bg = "secondary_highlight" }
3536
"ui.selection.primary" = { bg = "primary_highlight" }

theme.toml

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ label = "honey"
7171
"ui.menu" = { fg = "lavender", bg = "revolver" }
7272
"ui.menu.selected" = { fg = "revolver", bg = "white" }
7373
"ui.menu.scroll" = { fg = "lavender", bg = "comet" }
74+
"ui.menu.highlighted" = { fg = "almond"}
7475

7576
diagnostic = { modifiers = ["underlined"] }
7677
# "diagnostic.hint" = { fg = "revolver", bg = "lilac" }

0 commit comments

Comments
 (0)