datebox: correct invert color, toggle datepicker