Some edge smoothing on panels

This commit is intended to prepare for an overhaul of buttons, if we can
do that.