Switch theme automatically following preference change