'Update to palette for normal/error/hint mode'

def _update_palette(self, hint):

    if self._is_error:
        style = self._error_style
    elif ((not self.modern) and hint):
        style = self._hint_style
    else:
        style = self._default_style
    self._widget.setStyleSheet(style)
