Cycle/wrap through themes. Fixes #50
Fix bug of toggling mode in preferences screen doesn't behave correctly