Anything that's not cotton does the trick for my cool and sometimes rainy Connecticut commute, which uses a train for part of the ride in, and sometimes the full 16-17 mile ride home. I have a place to shower and change at work.
I have a pair of Twin 6 three quarter pants that I love to ride in.
https://www.twinsix.com/collections/mens-bottoms
But mostly I just commute in $10 clearance rack track pants.
__________________
The bicycle, the bicycle surely, should always be the vehicle of novelists and poets. Christopher Morley