Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b72850

Browse files
sassmanclaude
andcommitted
fix: use yellow text color for selected command palette row
Changed selected row foreground color from theme.selected_fg to theme.active_fg (yellow) for consistency with build log error lines. Updated colors: - View model: Changed selected row fg_color to theme.active_fg - View: Changed indicator/shortcut column to theme.active_fg when selected - View: Changed category column to theme.active_fg when selected This makes the selected/active command palette row use yellow text, matching the visual style of error lines in the build log viewer for better consistency across the UI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent d28aa02 commit 9b72850

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

crates/gh-pr-tui/src/view_models/command_palette.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ impl CommandPaletteViewModel {
9696

9797
// Colors
9898
let (fg_color, bg_color) = if is_selected {
99-
(theme.selected_fg, theme.selected_bg)
99+
// Use yellow for selected row (same as error lines in build log)
100+
(theme.active_fg, theme.selected_bg)
100101
} else {
101102
(theme.text_primary, Color::Reset)
102103
};

crates/gh-pr-tui/src/views/command_palette.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ pub fn render_command_palette(f: &mut Frame, area: Rect, app: &App) {
108108
let rows = vm.visible_rows.iter().map(|row_vm| {
109109
let indicator_shortcut_style = Style::default()
110110
.fg(if row_vm.is_selected {
111-
theme.accent_primary
111+
// Use yellow for selected row (consistent with title)
112+
theme.active_fg
112113
} else {
113114
theme.text_muted
114115
})
@@ -127,7 +128,8 @@ pub fn render_command_palette(f: &mut Frame, area: Rect, app: &App) {
127128
});
128129

129130
let category_style = Style::default().fg(if row_vm.is_selected {
130-
theme.text_secondary
131+
// Use yellow for selected row (consistent with title)
132+
theme.active_fg
131133
} else {
132134
theme.text_muted
133135
});

0 commit comments

Comments
 (0)