Invaders had caused a considerale detrimential to Indian culture and it’s religion where as local Kings played a very little role in that fashion.
Nobody is demonising Muslim rulers.Rulers like Shershah,Babar,Humayun,Akbar stand out and are acknowledged and praised even today ,for their pragmatic approaches and visions.
Ofcourse bad guys like Timor,Aurangazeb,Tipu etc still receive contempt.