From d0fb7d43621e5dd114ab03f9c372efe46eb01bd0 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Sun, 18 Dec 2022 19:26:02 +0100 Subject: [PATCH] only draw visible full line background instead of maximal possible width --- src/ui/bigtext/bigtext.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/bigtext/bigtext.py b/src/ui/bigtext/bigtext.py index 719bb64..345a848 100644 --- a/src/ui/bigtext/bigtext.py +++ b/src/ui/bigtext/bigtext.py @@ -520,11 +520,9 @@ class InnerBigText(QWidget): for highlight in highlights: 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 height = self.char_height - full_width = Settings.max_line_length() * self.char_width - rect = QRect(round(left_offset), round(y1), round(full_width), round(height)) + rect = QRect(0, round(y1), self.width(), round(height)) self.highlight_background(painter, rect, highlight.get_brush_full_line()) for highlight in highlights: