Make title buttons all have the same width

At the same time, make sure the title label has the same height
as the buttons, so the header bar doesn't shrink on the last page,
where there are no header buttons.
Remove more deprecated api