@@ -38,6 +38,7 @@ pub(crate) struct Display<T: Tui> {
3838 action_edit : ( Colors , Colors ) ,
3939 action_exec : ( Colors , Colors ) ,
4040 action_fixup : ( Colors , Colors ) ,
41+ action_index : ( Colors , Colors ) ,
4142 action_label : ( Colors , Colors ) ,
4243 action_merge : ( Colors , Colors ) ,
4344 action_pick : ( Colors , Colors ) ,
@@ -101,6 +102,12 @@ impl<T: Tui> Display<T> {
101102 theme. color_background ,
102103 theme. color_selected_background ,
103104 ) ;
105+ let action_index = register_selectable_color_pairs (
106+ color_mode,
107+ theme. color_action_index ,
108+ theme. color_background ,
109+ theme. color_selected_background ,
110+ ) ;
104111 let action_pick = register_selectable_color_pairs (
105112 color_mode,
106113 theme. color_action_pick ,
@@ -180,6 +187,7 @@ impl<T: Tui> Display<T> {
180187 action_edit,
181188 action_exec,
182189 action_fixup,
190+ action_index,
183191 action_label,
184192 action_merge,
185193 action_pick,
@@ -240,6 +248,7 @@ impl<T: Tui> Display<T> {
240248 DisplayColor :: ActionEdit => self . action_edit . 1 ,
241249 DisplayColor :: ActionExec => self . action_exec . 1 ,
242250 DisplayColor :: ActionFixup => self . action_fixup . 1 ,
251+ DisplayColor :: ActionIndex => self . action_index . 1 ,
243252 DisplayColor :: ActionPick => self . action_pick . 1 ,
244253 DisplayColor :: ActionReword => self . action_reword . 1 ,
245254 DisplayColor :: ActionSquash => self . action_squash . 1 ,
@@ -263,6 +272,7 @@ impl<T: Tui> Display<T> {
263272 DisplayColor :: ActionEdit => self . action_edit . 0 ,
264273 DisplayColor :: ActionExec => self . action_exec . 0 ,
265274 DisplayColor :: ActionFixup => self . action_fixup . 0 ,
275+ DisplayColor :: ActionIndex => self . action_index . 0 ,
266276 DisplayColor :: ActionPick => self . action_pick . 0 ,
267277 DisplayColor :: ActionReword => self . action_reword . 0 ,
268278 DisplayColor :: ActionSquash => self . action_squash . 0 ,
@@ -427,6 +437,13 @@ mod tests {
427437 CrosstermColor :: Magenta ,
428438 CrosstermColor :: AnsiValue ( 237 )
429439 ) ]
440+ #[ case:: action_index( DisplayColor :: ActionIndex , false , CrosstermColor :: DarkGreen , CrosstermColor :: Reset ) ]
441+ #[ case:: action_index_selected(
442+ DisplayColor :: ActionIndex ,
443+ true ,
444+ CrosstermColor :: DarkGreen ,
445+ CrosstermColor :: AnsiValue ( 237 )
446+ ) ]
430447 #[ case:: action_pick( DisplayColor :: ActionPick , false , CrosstermColor :: Green , CrosstermColor :: Reset ) ]
431448 #[ case:: action_pick_selected(
432449 DisplayColor :: ActionPick ,
0 commit comments