using the GetActiveSheetId() you can know what is your current sheet, use it to change the color of the button, go to button properties, background color, base color, calculated: and there you can put for example if (GetActiveSheetId() = 'Document\SH01', Red())
This is a nice one. It automatically assigns button colors based on the sheet ID. Adjust the INLINE table in the script and add a fourth color. Then on the third sheet, select rightmousemenu->Copy sheet.