A longtime Wyoming sheriff's deputy decided he would rather keep his cowboy hat and boots than his job.

When new Sublette County Sheriff Stephen Haskell took over, he banned cowboy hats and boots on the job and imposed a new dress code, saying the change is for safety and uniformity.

After 28 years with the department and 40 total years in law enforcement, Deputy Gene Bryson decided to retire rather than give up his uniform, which included a brown cowboy hat, brown cowboy boots and a vest.

“That’s kind of the reason why I retired,” Bryson told the Casper-Star Tribune. “I am not going to change. I’ve been here for 40-odd years in the Sheriff’s Office, and I’m not going to go out and buy combat boots and throw my vest and hat away and say, 'This is the new me.' That’s not going to work.”

“And I’ve had a cowboy hat on since 19-I-don’t-know,” Bryson said. “I’ve always worn a cowboy hat, all my life.”

“That’s what looks good to me in the Sheriff’s Department. It’s Western. It’s Wyoming.”

Hats off to you, Mr. Bryson.

Watch the clip from "Fox and Friends" above.