Pink lever is pivoted on the base and can move up-down. Blue spring forces the pink lever towards the green slider.
Yellow spring forces the green slider towards the right end of the pink bar.
The profile shape and various depths of groove on green slider ensures that the right end of the pink bar moves counter-cloclwise along the groove when the blue button is pushed and released.
The mechanism is used for locking small cabinet windows.