Mac Sidebar button in toolbar

Button to toggle sidebar, also changes as we manually close
the sidebar by dragging, similar to behaviour in XCode.