I worked for a sole proprietorship where every dollar went into or out of the owner's pocket. In winter, the office was so cold that I kept a water bottle that I'd run through the microwave to warm my hands. That was in the days when we still wore ties to work and I kept my jacket on all day, not to be formal but to be less cold.
I think wearing long pants in an office environment is a high risk venture, it results in worse coffee burns :-)
Anyhow I fixed that by getting a spiffy coffee machine that grinds the beans and froths the milk and keeps it at a lower temperture than instant made with hot water from a jug. Because of that I can wear jeans again :-)
I've got to say, I do prefer jeans I can regulate my temperature better and yes barefoot in summer.
Years ago, I kept a kilt in my desk at the office for warm early-spring days before the air conditioning was turned on for the season. When the office got hot, I'd change from pants to the kilt for the rest of the day.