Skip to content

Commit

Permalink
ratatui update (#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrawurst authored Oct 23, 2024
1 parent a923896 commit 603116f
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 17 deletions.
32 changes: 22 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ notify-debouncer-mini = "0.4"
once_cell = "1"
# pin until upgrading this does not introduce a duplicate dependency
parking_lot_core = "=0.9.9"
ratatui = { version = "0.28", default-features = false, features = [
ratatui = { version = "0.29", default-features = false, features = [
'crossterm',
'serde',
] }
Expand All @@ -57,11 +57,11 @@ syntect = { version = "5.2", default-features = false, features = [
"default-themes",
"html",
] }
tui-textarea = "0.6"
tui-textarea = "0.7"
two-face = { version = "0.4.0", default-features = false }
unicode-segmentation = "1.12"
unicode-truncate = "1.0"
unicode-width = "0.1"
unicode-width = "0.2"
which = "6.0"

[dev-dependencies]
Expand Down
10 changes: 9 additions & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@ version = "1.0.3"

[bans]
multiple-versions = "deny"
skip-tree = [{ name = "windows-sys" }, { name = "bitflags" }, { name = "mio" }]
skip-tree = [
{ name = "bitflags" },
# this is only needed for notify: https://github.com/notify-rs/notify/issues/648
{ name = "mio" },
# this is needed for:
# `bwrap v1.3.0` (https://github.com/micl2e2/bwrap/pull/4)
# `unicode-truncate v1.1.0` (https://github.com/Aetf/unicode-truncate/pull/23)
{ name = "unicode-width" },
]
2 changes: 1 addition & 1 deletion src/popups/blame_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl DrawableComponent for BlameFilePopup {

let table = Table::new(rows, constraints)
.column_spacing(1)
.highlight_style(self.theme.text(true, true))
.row_highlight_style(self.theme.text(true, true))
.block(
Block::default()
.borders(Borders::ALL)
Expand Down
2 changes: 1 addition & 1 deletion src/popups/file_revlog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ impl FileRevlogPopup {

let table = Table::new(rows, constraints)
.column_spacing(1)
.highlight_style(self.theme.text(true, true))
.row_highlight_style(self.theme.text(true, true))
.block(
Block::default()
.borders(Borders::ALL)
Expand Down
2 changes: 1 addition & 1 deletion src/popups/taglist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl DrawableComponent for TagListPopup {

let table = Table::new(rows, constraints)
.column_spacing(1)
.highlight_style(self.theme.text(true, true))
.row_highlight_style(self.theme.text(true, true))
.block(
Block::default()
.borders(Borders::ALL)
Expand Down

0 comments on commit 603116f

Please sign in to comment.