When i use segmentedit i find a question that couldn't solve, could you help me? thank you

I want to control the color of undo and redo, How do I get the number of operations and status of undo or redo when I use paint to edit segmentation