Move to alloy_tui 4.0.1
detect_color_depth is gone; fidelity() answers the same question in the
family's vocabulary rather than Alloy's own. Same detection, with one
correction behind it: an unrecognised TERM used to read as sixteen colours,
which would have quantised the whole theme on any terminal that did not
name itself and had its COLORTERM stripped in transit.
- Co-Authored-By
- Claude Opus 5 (1M context) <noreply@anthropic.com>
4 files changed,
+7 insertions,
-7 deletions
| 37 |
37 |
|
|
| 38 |
38 |
|
[[package]]
|
| 39 |
39 |
|
name = "alloy_tui"
|
| 40 |
|
- |
version = "3.1.0"
|
|
40 |
+ |
version = "4.0.1"
|
| 41 |
41 |
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 42 |
|
- |
checksum = "24b412f566e273ced5cc8d133109d50066a9ddbc44b3977224bd3a5eb45423e9"
|
|
42 |
+ |
checksum = "29853f363f07ca5c866b6f85d0bb82b38044aac0d74f862a7f0e073d11f2f7ac"
|
| 43 |
43 |
|
dependencies = [
|
| 44 |
44 |
|
"makeover",
|
| 45 |
45 |
|
"makeover-geometry",
|
| 919 |
919 |
|
|
| 920 |
920 |
|
[[package]]
|
| 921 |
921 |
|
name = "makeover-tui"
|
| 922 |
|
- |
version = "0.4.0"
|
|
922 |
+ |
version = "0.4.1"
|
| 923 |
923 |
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 924 |
|
- |
checksum = "a1d502c4f6ed8be2d2d4aaa3ce57a308f69f98e93d2426d61af0f784ca8cf264"
|
|
924 |
+ |
checksum = "09697f0990426e98777b31261feaa16f9fcab6d32d7fe4bd0a02e127267176b3"
|
| 925 |
925 |
|
dependencies = [
|
| 926 |
926 |
|
"makeover-layout",
|
| 927 |
927 |
|
"ratatui",
|
| 13 |
13 |
|
path = "src/main.rs"
|
| 14 |
14 |
|
|
| 15 |
15 |
|
[dependencies]
|
| 16 |
|
- |
alloy_tui = "3.1.0"
|
|
16 |
+ |
alloy_tui = "4.0.1"
|
| 17 |
17 |
|
anyhow = "1"
|
| 18 |
18 |
|
clap = { version = "4", features = ["derive"] }
|
| 19 |
19 |
|
ratatui.workspace = true
|
| 13 |
13 |
|
path = "src/main.rs"
|
| 14 |
14 |
|
|
| 15 |
15 |
|
[dependencies]
|
| 16 |
|
- |
alloy_tui = "3.1.0"
|
|
16 |
+ |
alloy_tui = "4.0.1"
|
| 17 |
17 |
|
anyhow = "1"
|
| 18 |
18 |
|
clap = { version = "4", features = ["derive"] }
|
| 19 |
19 |
|
makeover.workspace = true
|
| 214 |
214 |
|
// colors and approximates anything else it is sent; the console's own
|
| 215 |
215 |
|
// approximation collapsed the frame into the page behind it.
|
| 216 |
216 |
|
Theme::from_theme(&colors)
|
| 217 |
|
- |
.map(|theme| theme.for_terminal(alloy_tui::detect_color_depth()))
|
|
217 |
+ |
.map(|theme| theme.for_terminal(alloy_tui::fidelity()))
|
| 218 |
218 |
|
.with_context(|| format!("theme `{id}` is incomplete"))
|
| 219 |
219 |
|
}
|
| 220 |
220 |
|
|