You can certainly patent it.
"In general terms, a “utility patent” protects the way an article is used and works (35 U.S.C. 101), while a “design patent” protects the way an article looks (35 U.S.C. 171)."
Microsoft argued in court that you can not and won. See Apple vs Microsoft if I recall correctly.