ratatui update (#2403)

This commit is contained in:
extrawurst 2024-10-23 09:34:24 +02:00 committed by GitHub
parent a923896a62
commit 603116f491
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 37 additions and 17 deletions

32
Cargo.lock generated
View File

@ -341,7 +341,7 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d13da3319ae5c5771712fba7b79b028793149bc462a08990bc8fd7c7554dbb95"
dependencies = [
"unicode-width",
"unicode-width 0.1.13",
]
[[package]]
@ -1138,7 +1138,7 @@ dependencies = [
"two-face",
"unicode-segmentation",
"unicode-truncate",
"unicode-width",
"unicode-width 0.2.0",
"which",
]
@ -1736,6 +1736,12 @@ dependencies = [
"hashbrown",
]
[[package]]
name = "indoc"
version = "2.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
[[package]]
name = "inotify"
version = "0.9.6"
@ -2442,24 +2448,24 @@ dependencies = [
[[package]]
name = "ratatui"
version = "0.28.1"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdef7f9be5c0122f890d58bdf4d964349ba6a6161f705907526d891efabba57d"
checksum = "eabd94c2f37801c20583fc49dd5cd6b0ba68c716787c2dd6ed18571e1e63117b"
dependencies = [
"bitflags 2.6.0",
"cassowary",
"compact_str",
"crossterm",
"indoc",
"instability",
"itertools",
"lru",
"paste",
"serde",
"strum",
"strum_macros",
"unicode-segmentation",
"unicode-truncate",
"unicode-width",
"unicode-width 0.2.0",
]
[[package]]
@ -3111,13 +3117,13 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tui-textarea"
version = "0.6.1"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29c07084342a575cea919eea996b9658a358c800b03d435df581c1d7c60e065a"
checksum = "0a5318dd619ed73c52a9417ad19046724effc1287fb75cdcc4eca1d6ac1acbae"
dependencies = [
"crossterm",
"ratatui",
"unicode-width",
"unicode-width 0.2.0",
]
[[package]]
@ -3187,7 +3193,7 @@ checksum = "b3644627a5af5fa321c95b9b235a72fd24cd29c648c2c379431e6628655627bf"
dependencies = [
"itertools",
"unicode-segmentation",
"unicode-width",
"unicode-width 0.1.13",
]
[[package]]
@ -3196,6 +3202,12 @@ version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d"
[[package]]
name = "unicode-width"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd"
[[package]]
name = "universal-hash"
version = "0.5.1"

View File

@ -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',
] }
@ -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]

View File

@ -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" },
]

View File

@ -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)

View File

@ -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)

View File

@ -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)