Skip to content

Commit 0949cbc

Browse files
authored
readerview: temporary highlight -> selection
1 parent e5bfa03 commit 0949cbc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/apps/reader/modules/readerview.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ end
526526

527527
function ReaderView:drawTempHighlight(bb, x, y)
528528
local color = self.highlight.saved_drawer ~= "invert"
529-
and G_reader_settings:isTrue("highlight_temp_use_main_color")
529+
and G_reader_settings:isTrue("highlight_selection_use_highlight_color")
530530
and Blitbuffer.colorFromName(self.highlight.saved_color) or nil
531531
for page, boxes in pairs(self.highlight.temp) do
532532
for i = 1, #boxes do
@@ -689,7 +689,7 @@ function ReaderView:drawHighlightRect(bb, _x, _y, rect, drawer, color, draw_note
689689
end
690690
if drawer == "lighten" then
691691
local lighten_factor = self.highlight.temp and next(self.highlight.temp)
692-
and (G_reader_settings:readSetting("highlight_temp_lighten_factor") or 0.2) or self.highlight.lighten_factor
692+
and (G_reader_settings:readSetting("highlight_selection_lighten_factor") or 0.2) or self.highlight.lighten_factor
693693
if not color then
694694
bb:darkenRect(x, y, w, h, lighten_factor)
695695
else

0 commit comments

Comments
 (0)