mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Highlight current drop action
This commit is contained in:
@@ -236,9 +236,18 @@ func run_loop(opts *Options, drop_dests map[string]drop_dest, drag_sources map[s
|
||||
lp.MoveCursorVertically(1)
|
||||
}
|
||||
}
|
||||
const fg = 32
|
||||
if drop_status.action == copy_on_drop {
|
||||
lp.Printf("\x1b[%dm", fg)
|
||||
}
|
||||
render_box(1, "Copy", ©_button_region)
|
||||
lp.QueueWriteString("\x1b[m")
|
||||
box_width := 6 + len("move")*scale
|
||||
if drop_status.action == move_on_drop {
|
||||
lp.Printf("\x1b[%dm", fg)
|
||||
}
|
||||
render_box(1+int(sz.WidthCells)-box_width, "Move", &move_button_region)
|
||||
lp.QueueWriteString("\x1b[m")
|
||||
_ = in_test_mode
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user