'Slot for load_status_changed. Sets URL color accordingly.
Args:
status_str: The LoadStatus as string.'

@pyqtSlot(str)
def on_load_status_changed(self, status_str):

    status = usertypes.LoadStatus[status_str]
    if (status in [usertypes.LoadStatus.success, usertypes.LoadStatus.success_https, usertypes.LoadStatus.error, usertypes.LoadStatus.warn]):
        self._normal_url_type = UrlType[status_str]
    else:
        self._normal_url_type = UrlType.normal
    self._update_url()
