I would like to have two different backrounds for a context

Such feature is not available through API, but you can

a) Change appropriate settings for all menu items through dhtmlxMenu.css file

or

b) You can related HTML elements directly through DOM and change appropriate settings
            aMenuBar.getItem(‘main_file’).CSSTag.style.backgroundColor=‘red’;
            aMenuBar.getItem(‘main_file’).imageTag.parentNode.style.backgroundColor=‘green’;