Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cortex-cli/src/styled_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ fn is_terminal_output(stderr: bool) -> bool {

/// ANSI color codes for light theme (bright/light terminal backgrounds).
mod light_theme {
pub const SUCCESS: &str = "\x1b[38;2;0;150;100m"; // Dark green for contrast
pub const ERROR: &str = "\x1b[38;2;180;40;40m"; // Dark red for contrast
pub const WARNING: &str = "\x1b[38;2;180;120;0m"; // Dark amber for contrast
pub const SUCCESS: &str = "\x1b[38;2;0;150;125m"; // #00967D - Teal for contrast
pub const ERROR: &str = "\x1b[38;2;217;61;61m"; // #D93D3D - Darker red for contrast
pub const WARNING: &str = "\x1b[38;2;201;154;46m"; // #C99A2E - Darker amber for contrast
pub const INFO: &str = "\x1b[38;2;0;100;160m"; // Dark blue for contrast
pub const DIM: &str = "\x1b[38;2;100;100;100m"; // Gray for muted text
pub const BOLD: &str = "\x1b[1m";
Expand Down
15 changes: 8 additions & 7 deletions cortex-tui/src/interactive/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ impl<'a> InteractiveWidget<'a> {

hints.push(("Esc", "cancel"));

// Dark green color for hints
let dark_green = Color::Rgb(0, 100, 0);
// Use standard TEXT_DIM color for hints
let hint_color = TEXT_DIM;

let mut spans = Vec::new();
for (i, (key, action)) in hints.iter().enumerate() {
Expand All @@ -365,11 +365,11 @@ impl<'a> InteractiveWidget<'a> {
}
spans.push(Span::styled(
format!("[{}]", key),
Style::default().fg(dark_green),
Style::default().fg(hint_color),
));
spans.push(Span::styled(
format!(" {}", action),
Style::default().fg(dark_green),
Style::default().fg(hint_color),
));
}

Expand Down Expand Up @@ -504,7 +504,8 @@ impl<'a> InteractiveWidget<'a> {
fn render_form_hints(&self, area: Rect, buf: &mut Buffer) {
let hints = vec![("Tab", "next"), ("Enter", "submit"), ("Esc", "cancel")];

let dark_green = Color::Rgb(0, 100, 0);
// Use standard TEXT_DIM color for hints
let hint_color = TEXT_DIM;

let mut spans = Vec::new();
for (i, (key, action)) in hints.iter().enumerate() {
Expand All @@ -513,11 +514,11 @@ impl<'a> InteractiveWidget<'a> {
}
spans.push(Span::styled(
format!("[{}]", key),
Style::default().fg(dark_green),
Style::default().fg(hint_color),
));
spans.push(Span::styled(
format!(" {}", action),
Style::default().fg(dark_green),
Style::default().fg(hint_color),
));
}

Expand Down
Loading