Fixes for side bar icon toggle when switching modes

Fixed side bar to properly toggle the Hide/Show state when switching modes
Minor fixes to #defines for Q_OS_MAC on side/scopebar