add new highlight dialog
This commit is contained in:
@@ -33,6 +33,18 @@ class HighlightRegex(Highlight):
|
||||
self.query = query
|
||||
self.regex = self._get_regex()
|
||||
|
||||
def set_hit_background_color(self, color: str):
|
||||
self.hit_background_color = color
|
||||
|
||||
def set_line_background_color(self, color: str):
|
||||
self.line_background_color = color
|
||||
|
||||
def set_is_regex(self, is_regex: bool):
|
||||
self.is_regex = is_regex
|
||||
|
||||
def set_is_ignore_case(self, ignore_case: bool):
|
||||
self.ignore_case = ignore_case
|
||||
|
||||
def compute_highlight(self, line: Line) -> Optional[List[HighlightedRange]]:
|
||||
result = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user