@@ -34,6 +34,7 @@ use crate::config::Theme;
3434#[ derive( Debug ) ]
3535pub ( crate ) struct Display < T : Tui > {
3636 action_break : ( Colors , Colors ) ,
37+ action_cut : ( Colors , Colors ) ,
3738 action_drop : ( Colors , Colors ) ,
3839 action_edit : ( Colors , Colors ) ,
3940 action_exec : ( Colors , Colors ) ,
@@ -78,6 +79,12 @@ impl<T: Tui> Display<T> {
7879 theme. color_background ,
7980 theme. color_selected_background ,
8081 ) ;
82+ let action_cut = register_selectable_color_pairs (
83+ color_mode,
84+ theme. color_action_cut ,
85+ theme. color_background ,
86+ theme. color_selected_background ,
87+ ) ;
8188 let action_drop = register_selectable_color_pairs (
8289 color_mode,
8390 theme. color_action_drop ,
@@ -183,6 +190,7 @@ impl<T: Tui> Display<T> {
183190
184191 Self {
185192 action_break,
193+ action_cut,
186194 action_drop,
187195 action_edit,
188196 action_exec,
@@ -244,6 +252,7 @@ impl<T: Tui> Display<T> {
244252 if selected {
245253 match color {
246254 DisplayColor :: ActionBreak => self . action_break . 1 ,
255+ DisplayColor :: ActionCut => self . action_cut . 1 ,
247256 DisplayColor :: ActionDrop => self . action_drop . 1 ,
248257 DisplayColor :: ActionEdit => self . action_edit . 1 ,
249258 DisplayColor :: ActionExec => self . action_exec . 1 ,
@@ -268,6 +277,7 @@ impl<T: Tui> Display<T> {
268277 else {
269278 match color {
270279 DisplayColor :: ActionBreak => self . action_break . 0 ,
280+ DisplayColor :: ActionCut => self . action_cut . 0 ,
271281 DisplayColor :: ActionDrop => self . action_drop . 0 ,
272282 DisplayColor :: ActionEdit => self . action_edit . 0 ,
273283 DisplayColor :: ActionExec => self . action_exec . 0 ,
0 commit comments