make the panel and page_head have same color

Fill the panel with same fore- and back-ground colors as the page head
button when the page is in focus.
reduce redundant code in button widget

Paint only once in _paint_button() when status changed.