Skip to content

Commit

Permalink
update: highlight_style -> row_highlight_style
Browse files Browse the repository at this point in the history
  • Loading branch information
honhimW committed Dec 9, 2024
1 parent e64f0ea commit 6f1d157
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/hash_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl HashValue {
],
)
.header(header)
.highlight_style(selected_style)
.row_highlight_style(selected_style)
.highlight_symbol(highlight_symbol)
.bg(self.colors.buffer_bg)
.highlight_spacing(HighlightSpacing::Always);
Expand Down
2 changes: 1 addition & 1 deletion src/components/list_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl ListValue {
],
)
.header(header)
.highlight_style(selected_style)
.row_highlight_style(selected_style)
.highlight_symbol(highlight_symbol)
.bg(self.colors.buffer_bg)
.highlight_spacing(HighlightSpacing::Always);
Expand Down
2 changes: 1 addition & 1 deletion src/components/redis_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ fn get_table(rows: Vec<Row>) -> Table {
let table = Table::new(rows, [Min(1), Length(7), Length(0)])
// .block(Block::bordered().border_type(BorderType::Rounded))
.style(Style::default().bg(tailwind::NEUTRAL.c800))
.highlight_style(Style::default().bg(tailwind::ZINC.c900).bold());
.row_highlight_style(Style::default().bg(tailwind::ZINC.c900).bold());
table
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/servers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl ServerList {
],
)
.header(header)
.highlight_style(selected_style)
.row_highlight_style(selected_style)
.highlight_symbol(Text::raw(bar))
.bg(self.colors.buffer_bg)
.column_spacing(1)
Expand Down
2 changes: 1 addition & 1 deletion src/components/set_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl SetValue {
],
)
.header(header)
.highlight_style(selected_style)
.row_highlight_style(selected_style)
.highlight_symbol(highlight_symbol)
.bg(self.colors.buffer_bg)
.highlight_spacing(HighlightSpacing::Always);
Expand Down
4 changes: 2 additions & 2 deletions src/components/stream_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ impl SteamView {
],
)
.header(header)
.highlight_style(selected_style)
.row_highlight_style(selected_style)
.highlight_symbol(highlight_symbol)
.bg(self.id_table.colors.buffer_bg)
.highlight_spacing(HighlightSpacing::Always);
Expand Down Expand Up @@ -346,7 +346,7 @@ impl SteamView {
],
)
.header(header)
.highlight_style(selected_style)
.row_highlight_style(selected_style)
.highlight_symbol(highlight_symbol)
.bg(self.entry_table.colors.buffer_bg)
.highlight_spacing(HighlightSpacing::Always);
Expand Down
2 changes: 1 addition & 1 deletion src/components/zset_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ impl ZSetValue {
],
)
.header(header)
.highlight_style(selected_style)
.row_highlight_style(selected_style)
.highlight_symbol(highlight_symbol)
.bg(self.colors.buffer_bg)
.highlight_spacing(HighlightSpacing::Always);
Expand Down

0 comments on commit 6f1d157

Please sign in to comment.