It is not easy to accept change, even when it is positive. The same way, it is not easy to accept compliments and attention from others. It actually takes some work!
For instance you may prepare in advance by thinking, if I genuinely complimented someone, what response would I like to get - or not?
"Thank you."
"Thanks, nice of you to say."
"Thank you, you know it makes me feel good that you say this."
"Thank you, I make (/today I made) an effort to look good and I'm happy you noticed it."
"I know, thanks."
"Gee, I was starting to wonder when someone would notice!"
"Finally!"
"Really? You mean it? I mean, aren't you saying this just out of kindness?"
"OK what are you about to ask me?"
"I hope you're joking?"
"(...)"
(Shudders, looks down and turns away)
This is not bad attention your getting. You are young and you have great legs: it is not out of line to go hose/leggings -free, especially if the weather justifies it.
But it you continue to feel uncomfortable, or self-conscious then don't force yourself to go bare legs! The most important thing is that you feel like a million bucks, and that in itself will give you all the confidence you need.
Cheers!