It was actually completely the opposite, the modern yoga practices were actually inspired by colonial rulers as it was time when in Europe it has become very popular and fashionable to exercise. Maharaja Krisharaja Wadiyar IV has hired Tirumalai Krishnamacharya (who btw died in 1989, just 32 years ago) to come up with somethign similar to Swedish gymnastics and Sokol movements in Slavic countries, just based on Indian traditions. It had nothing to do with colonial resistance, it was just a fashionable thing coming from the West, like later jeans or McDonalds or Starbucks (or cross-fit training for that matter)...