From 54b3b5a8cc271fcb0ad72a9bb6eeee727dd742b8 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Sun, 19 Feb 2023 21:49:09 +0200 Subject: [PATCH] ReaderHighlight: minor fixes (#10142) * readerui: save highlight to pdf requires button press * readerhighlight: fix select mode confirmbox icon --- frontend/apps/reader/modules/readerhighlight.lua | 2 +- frontend/apps/reader/readerui.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/apps/reader/modules/readerhighlight.lua b/frontend/apps/reader/modules/readerhighlight.lua index 60c70c2c7..aa234968c 100644 --- a/frontend/apps/reader/modules/readerhighlight.lua +++ b/frontend/apps/reader/modules/readerhighlight.lua @@ -618,7 +618,7 @@ function ReaderHighlight:onTapSelectModeIcon() if not self.select_mode then return end UIManager:show(ConfirmBox:new{ text = _("You are currently in SELECT mode.\nTo finish highlighting, long press where the highlight should end and press the HIGHLIGHT button.\nYou can also exit select mode by tapping on the start of the highlight."), - icon = "format-quote-close", + icon = "texture-box", ok_text = _("Exit select mode"), cancel_text = _("Close"), ok_callback = function() diff --git a/frontend/apps/reader/readerui.lua b/frontend/apps/reader/readerui.lua index 952ac4cab..fa98db798 100644 --- a/frontend/apps/reader/readerui.lua +++ b/frontend/apps/reader/readerui.lua @@ -756,9 +756,9 @@ function ReaderUI:notifyCloseDocument() self:closeDocument() else UIManager:show(ConfirmBox:new{ - text = _("Do you want to save this document?"), - ok_text = _("Save"), - cancel_text = _("Don't save"), + text = _("Write highlights into this PDF??"), + ok_text = _("Write"), + dismissable = false, ok_callback = function() self:closeDocument() end,