Replace named Ratatui colors with RGB values
Project tests / check (push) Successful in 3m38s
Project tests / nix (push) Successful in 9m16s
Project tests / linux (push) Successful in 2m15s
Project tests / aur (push) Successful in 8m29s

Update docs, increase test count to 107, adjust flake.lock, and modify
rendering logic to use explicit Color::Rgb throughout the codebase.
This commit is contained in:
GarandPLG committed 2026-10-26 13:21:25 +01:00
1 parent b1f548e3d3
commit 851d3410dd
28 files changed
+282 -152

No files matched your search

+9 -4
View File
@@ -178,8 +178,13 @@ fn contextual_help_fits_normal_terminal_and_changes_when_route_is_selected() ->
#[test]
fn construction_and_recruitment_popups_render_semantic_text_colors() -> () {
for (key, name, status, status_color) in [
('b', "Mine", "Construction unavailable", Color::Red),
('r', "Miner", "Enter: queue Miner", Color::Green),
(
'b',
"Mine",
"Construction unavailable",
Color::Rgb(128, 0, 0),
),
('r', "Miner", "Enter: queue Miner", Color::Rgb(0, 128, 0)),
] {
let mut app: App = app();
if key == 'r' {
@@ -194,8 +199,8 @@ fn construction_and_recruitment_popups_render_semantic_text_colors() -> () {
.unwrap();
let cells: &[Cell] = &terminal.backend().buffer().content;
for (text, color) in [
(name, Color::LightMagenta),
("Cost:", Color::Yellow),
(name, Color::Rgb(255, 0, 255)),
("Cost:", Color::Rgb(128, 128, 0)),
(status, status_color),
] {
assert!(