readerview: fix highlight in night mode (#15336)

This commit is contained in:
hius07 authored and GitHub committed 2026-05-06 09:25:19 +03:00
1 parent 6eeb42f445
commit 6ffc7de0d8
1 file changed
+3 -3
+3 -3
View File
@@ -703,7 +703,7 @@ function ReaderView:drawHighlightRect(bb, _x, _y, rect, drawer, color, draw_note
if Blitbuffer.isColor8(color) then
bb:paintRect(x, y + h - 1, w, Size.line.thick, color)
else
bb:paintRectRGB32(x, y + h - 1, w, Size.line.thick, color)
bb:paintRectRGB32(x, y + h - 1, w, Size.line.thick, Screen.night_mode and color:invert() or color)
end
elseif drawer == "strikeout" then
if not color then
@@ -716,7 +716,7 @@ function ReaderView:drawHighlightRect(bb, _x, _y, rect, drawer, color, draw_note
if Blitbuffer.isColor8(color) then
bb:paintRect(x, line_y, w, Size.line.medium, color)
else
bb:paintRectRGB32(x, line_y, w, Size.line.medium, color)
bb:paintRectRGB32(x, line_y, w, Size.line.medium, Screen.night_mode and color:invert() or color)
end
elseif drawer == "invert" then
bb:invertRect(x, y, w, h)
@@ -740,7 +740,7 @@ function ReaderView:drawHighlightRect(bb, _x, _y, rect, drawer, color, draw_note
if Blitbuffer.isColor8(color) then
bb:paintRect(note_mark_pos_x, y, self.note_mark_line_w, rect.h, color)
else
bb:paintRectRGB32(note_mark_pos_x, y, self.note_mark_line_w, rect.h, color)
bb:paintRectRGB32(note_mark_pos_x, y, self.note_mark_line_w, rect.h, Screen.night_mode and color:invert() or color)
end
elseif self.highlight.note_mark == "sidemark" then
if draw_note_mark then