Skip to main content

format_color_compact

Function format_color_compact 

Source
pub fn format_color_compact(color: Color) -> String
Expand description

Format a color as a compact string for display

ยงExample

use ratatui::style::Color;
use tui_dispatch_debug::debug::format_color_compact;

assert_eq!(format_color_compact(Color::Rgb(255, 128, 0)), "(255,128,0)");
assert_eq!(format_color_compact(Color::Red), "Red");
assert_eq!(format_color_compact(Color::Reset), "Reset");