widget: Simplify fancy button display and highlight code.