Like the title says, how do I change the colour when pressed and stays on that colour until you press another button and that previous one changed to the original colour.
Let’s say the button 1 is black. When pressed, it become white and stays white. Until I press button 2 , button 2 turned white and button 1 change to black.
So how do I do this? And I’ve already changed the style of the button,