only draw visible full line background instead of maximal possible width
This commit is contained in:
@@ -520,11 +520,9 @@ class InnerBigText(QWidget):
|
|||||||
|
|
||||||
for highlight in highlights:
|
for highlight in highlights:
|
||||||
if highlight.is_highlight_full_line():
|
if highlight.is_highlight_full_line():
|
||||||
left_offset = -1 * self._left_offset * self.char_width
|
|
||||||
y1 = y_line_offset - self.char_height + self.char_height / 7
|
y1 = y_line_offset - self.char_height + self.char_height / 7
|
||||||
height = self.char_height
|
height = self.char_height
|
||||||
full_width = Settings.max_line_length() * self.char_width
|
rect = QRect(0, round(y1), self.width(), round(height))
|
||||||
rect = QRect(round(left_offset), round(y1), round(full_width), round(height))
|
|
||||||
self.highlight_background(painter, rect, highlight.get_brush_full_line())
|
self.highlight_background(painter, rect, highlight.get_brush_full_line())
|
||||||
|
|
||||||
for highlight in highlights:
|
for highlight in highlights:
|
||||||
|
|||||||
Reference in New Issue
Block a user