@@ -348,9 +348,23 @@ func (a *App) activateHintMode(withActions bool) {
348348 a .currentHints = hints .NewHintCollection (hintList )
349349
350350 // Draw hints
351- if err := a .hintOverlay .DrawHints (hintList ); err != nil {
352- a .logger .Error ("Failed to draw hints" , zap .Error (err ))
353- return
351+ // Use distinct colors when entering hint mode with actions
352+ if withActions {
353+ style := a .config .Hints
354+ style .BackgroundColor = a .config .Hints .ActionBackgroundColor
355+ style .TextColor = a .config .Hints .ActionTextColor
356+ style .MatchedTextColor = a .config .Hints .ActionMatchedTextColor
357+ style .BorderColor = a .config .Hints .ActionBorderColor
358+ style .Opacity = a .config .Hints .ActionOpacity
359+ if err := a .hintOverlay .DrawHintsWithStyle (hintList , style ); err != nil {
360+ a .logger .Error ("Failed to draw hints" , zap .Error (err ))
361+ return
362+ }
363+ } else {
364+ if err := a .hintOverlay .DrawHints (hintList ); err != nil {
365+ a .logger .Error ("Failed to draw hints" , zap .Error (err ))
366+ return
367+ }
354368 }
355369
356370 a .hintOverlay .Show ()
@@ -456,8 +470,20 @@ func (a *App) handleHintKey(key string) {
456470 hint .MatchedPrefix = a .hintInput
457471 }
458472 a .hintOverlay .Clear ()
459- if err := a .hintOverlay .DrawHints (filtered ); err != nil {
460- a .logger .Error ("Failed to redraw hints" , zap .Error (err ))
473+ if a .currentMode == ModeHintWithActions {
474+ style := a .config .Hints
475+ style .BackgroundColor = a .config .Hints .ActionBackgroundColor
476+ style .TextColor = a .config .Hints .ActionTextColor
477+ style .MatchedTextColor = a .config .Hints .ActionMatchedTextColor
478+ style .BorderColor = a .config .Hints .ActionBorderColor
479+ style .Opacity = a .config .Hints .ActionOpacity
480+ if err := a .hintOverlay .DrawHintsWithStyle (filtered , style ); err != nil {
481+ a .logger .Error ("Failed to redraw hints" , zap .Error (err ))
482+ }
483+ } else {
484+ if err := a .hintOverlay .DrawHints (filtered ); err != nil {
485+ a .logger .Error ("Failed to redraw hints" , zap .Error (err ))
486+ }
461487 }
462488
463489 // If exactly one match and input matches the full label
@@ -534,6 +560,13 @@ func (a *App) showActionMenu(hint *hints.Hint) {
534560
535561 // Create smaller style for action hints
536562 actionStyle := a .config .Hints
563+ // Apply distinct colors for action overlay from config
564+ actionStyle .BackgroundColor = a .config .Hints .ActionBackgroundColor
565+ actionStyle .TextColor = a .config .Hints .ActionTextColor
566+ actionStyle .MatchedTextColor = a .config .Hints .ActionMatchedTextColor
567+ actionStyle .BorderColor = a .config .Hints .ActionBorderColor
568+ actionStyle .Opacity = a .config .Hints .ActionOpacity
569+ // Use smaller sizing for action hints
537570 actionStyle .FontSize = 11 // Smaller font
538571 actionStyle .Padding = 3 // Less padding
539572 actionStyle .BorderRadius = 3 // Smaller border radius
0 commit comments