Move theme changing to preferences.