ui-state-error and Title Bar for Dialogs

ui-state-error and Title Bar for Dialogs


Hello,
I've tried adding the ui-state-error to my dialog like this:
$(function() {
        $("#dialog").dialog({
            bgiframe: true,
            dialogClass: 'ui-state-error',
            height: 140,
            modal: true
        });
    });
This works pretty good with the exception of the title bar. The title
bar still contains the main color of the theme rather than the red
color that matches the ui-state-error class.
It seems like it might be beneficial to be able to set the Header:
error state when developing a theme.
Is there an easy way to do this?