ReaderHighlight: new icon in select mode ConfirmBox (#9830)

reviewable/pr9832/r1
hius07 1 year ago committed by GitHub
parent 1c42641733
commit c35140e8d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -618,6 +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",
ok_text = _("Exit select mode"),
cancel_text = _("Close"),
ok_callback = function()

@ -44,6 +44,7 @@ local ConfirmBox = InputContainer:extend{
keep_dialog_open = false,
text = _("no text"),
face = Font:getFace("infofont"),
icon = "notice-question",
ok_text = _("OK"),
cancel_text = _("Cancel"),
ok_callback = function() end,
@ -83,7 +84,8 @@ function ConfirmBox:init()
local content = HorizontalGroup:new{
align = "center",
IconWidget:new{
icon = "notice-question",
icon = self.icon,
alpha = true,
},
HorizontalSpan:new{ width = Size.span.horizontal_default },
text_widget,

Loading…
Cancel
Save