This can be argued 100 different ways. In the end, the answer is definitely maybe. Depends on the dealerships assessment & exactly what broke. For example, they can't void a warranty on your CV joints because of window tint. They might if a window regulator went, then again, they might not.
Some will argue that laws are in place to protect you on this. Just remember, regardless of how the law is written, the dealership holds all the cards. Law says that they cannot deny warrant unless they can specifically prove the aftermarket part caused the failure. That's real nice except they can deny the warranty and then it's up to you to fight them for coverage. Lots of luck on that.