|
14 | 14 | use crate::prelude::*; |
15 | 15 |
|
16 | 16 | use indenter::indented; |
| 17 | +use owo_colors::OwoColorize; |
17 | 18 | use std::fmt::Debug; |
18 | 19 | use std::fmt::{Display, Write}; |
19 | 20 | use std::hash::Hash; |
@@ -274,14 +275,18 @@ impl<K, S, C: ResourceSetupStatusCheck> std::fmt::Display for ResourceSetupInfo< |
274 | 275 | Some(SetupChangeType::Invalid) => "INVALID", |
275 | 276 | None => "USER MANAGED", |
276 | 277 | }; |
277 | | - writeln!(f, "[ {:^9} ] {}", status_code, self.description)?; |
| 278 | + // Colors |
| 279 | + let status_bg = status_code.on_truecolor(0x5c, 0xe1, 0xe6); |
| 280 | + let status_colored = status_bg.truecolor(0xff, 0xff, 0xff); |
| 281 | + let desc_colored = self.description.truecolor(0xff, 0xff, 0xff); |
| 282 | + writeln!(f, "[ {:^9} ] {}", status_colored, desc_colored)?; |
278 | 283 | if let Some(status_check) = &self.status_check { |
279 | 284 | let changes = status_check.describe_changes(); |
280 | 285 | if !changes.is_empty() { |
281 | 286 | let mut f = indented(f).with_str(INDENT); |
282 | | - writeln!(f, "TODO:")?; |
| 287 | + writeln!(f, "{}", "TODO:".truecolor(0xae, 0xae, 0xae))?; |
283 | 288 | for change in changes { |
284 | | - writeln!(f, " - {}", change)?; |
| 289 | + writeln!(f, " - {}", change.truecolor(0xae, 0xae, 0xae))?; |
285 | 290 | } |
286 | 291 | writeln!(f)?; |
287 | 292 | } |
|
0 commit comments