Use BETWEEN macro in xsetcolorname and fix style.