'Apply color scheme from syntax highlighter to the editor'

def _apply_highlighter_color_scheme(self):

    hl = self.highlighter
    if (hl is not None):
        self.set_palette(background=hl.get_background_color(), foreground=hl.get_foreground_color())
        self.currentline_color = hl.get_currentline_color()
        self.currentcell_color = hl.get_currentcell_color()
        self.occurrence_color = hl.get_occurrence_color()
        self.ctrl_click_color = hl.get_ctrlclick_color()
        self.sideareas_color = hl.get_sideareas_color()
        self.comment_color = hl.get_comment_color()
        self.normal_color = hl.get_foreground_color()
        self.matched_p_color = hl.get_matched_p_color()
        self.unmatched_p_color = hl.get_unmatched_p_color()
        self.edge_line.update_color()
        self.indent_guides.update_color()
