Change button colors as slides change

Hello! Can you please help me change the border color and not the background?