Expression painter:currentbackground() returns a qt.QBrush representing the current background brush used for displaying the backgrounds when painting dashed line, text, or bitonal images. The default is an empty brush.
painter:currentbackground()
qt.QBrush