Apply theme automatically