ReaderSearch results: search string always in bold (#12940)

This commit is contained in:
hius07
2024-12-27 08:27:13 +02:00
committed by GitHub
parent 0114954fc1
commit e6b45e7ff7
2 changed files with 16 additions and 2 deletions

View File

@@ -661,6 +661,7 @@ function ReaderSearch:onShowFindAllResults(not_cached)
item_table = self.findall_results,
items_per_page = self.findall_results_per_page,
items_max_lines = self.findall_results_max_lines,
multilines_forced = true, -- to always have search_string in bold
covers_fullscreen = true,
is_borderless = true,
is_popout = false,
@@ -718,7 +719,16 @@ function ReaderSearch:showAllResultsMenuDialog()
local buttons = {
{
{
text = _("Filter by current chapter"),
text = _("All results"),
callback = function()
UIManager:close(button_dialog)
self:updateAllResultsMenu(self.findall_results)
end,
},
},
{
{
text = _("Results in current chapter"),
callback = function()
UIManager:close(button_dialog)
local current_chapter = self.ui.toc:getTocTitleOfCurrentPage()
@@ -737,6 +747,7 @@ function ReaderSearch:showAllResultsMenuDialog()
end,
},
},
{}, -- separator
{
{
text_func = function()