aboutsummaryrefslogtreecommitdiff
path: root/src/color.rs
AgeCommit message (Collapse)Author
2025-11-30Refactor color detection and ANSI handling for improved platform compatibilityxxanqw
2025-11-29Enable ANSI support on Windows and fallback to crossterm colors if necessaryxxanqw
2025-11-26Add color handling and CLI integration testsxxanqw
- Implemented a comprehensive color module in `src/color.rs` that supports named colors, hex, RGB, HSL, ANSI, and truecolor formats. - Added parsing functions for different color formats with error handling. - Introduced conversion methods for colors to RGB and ANSI escape codes. - Created a `ColorMode` enum to detect terminal color capabilities. - Added linear interpolation for colors in HSV space. - Developed integration tests in `tests/integration_tests.rs` to verify CLI functionality, including listing styles and error handling for missing or conflicting arguments.