Fix for the dialogs layout with the new theme