Green lever brings blue slider to one of its two positions.
The slider is kept firmly at each position thanks to the spring.
At left positon, axis of pink pin is lower than the one of the revolution joint of the green lever. Spring force tends to turn the green lever anticlockwise.
At right position the things are opposite.