PakhomovAlexander opened a new pull request, #7540:
URL: https://github.com/apache/ignite-3/pull/7540

   ## Summary
   
   Adds configurable color themes to improve CLI readability on terminals with 
different background colors (light vs dark). Previously, CLI colors were 
hardcoded for dark backgrounds only, making output difficult to read on 
light-themed terminals.
   
   https://issues.apache.org/jira/browse/IGNITE-27726
   
   ## Changes
   
   ### New Configuration Option
   - Added `ignite.cli.color-scheme` config key
   - Users can switch themes via: `cli config set ignite.cli.color-scheme 
<theme>`
   
   ### Available Themes
   | Theme | Description |
   |-------|-------------|
   | `solarized-dark` | **Default.** [Solarized 
Dark](https://ethanschoonover.com/solarized/) palette - excellent readability 
on dark backgrounds |
   | `solarized-light` | Solarized Light palette - excellent readability on 
light backgrounds |
   | `dark` | High-contrast colors for dark backgrounds |
   | `light` | Dark colors optimized for light backgrounds |
   
   ### Architecture
   - **`ColorScheme`** enum: Defines ANSI 256-color codes for each theme (UI 
colors + syntax highlighting)
   - **`ColorSchemeProvider`** interface: Enables dynamic color scheme 
resolution
   - **`AnsiStringSupport`**: Refactored to use semantic `Color` enum that 
resolves to actual ANSI codes based on current scheme
   - Color scheme is read from config on each use, so changes take effect 
immediately without restart
   
   ### Themed Components
   All CLI output components now respect the color scheme:
   - Status indicators (node status, cluster status)
   - REPL prompts (connected/disconnected states)
   - Syntax highlighting (SQL, JSON, HOCON)
   - Error messages and warnings
   - UI elements (options, commands, URLs)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to