ReaderHighlight, ReaderBookmark: Highlight button labels, Bookmark details button order (#13735)

* Add Xs to highlight erase buttons

* Change order of buttons
This commit is contained in:
jonnyl2 authored and GitHub committed 2025-05-05 21:57:04 +02:00
1 parent a60cf6b108
commit fce94ce1de
2 files changed
+33 -33

No files matched your search

+32 -32
View File
@@ -1176,6 +1176,36 @@ function ReaderBookmark:showBookmarkDetails(item_or_index)
end
local buttons_table = {
{
{
text = "▕◁",
enabled = item_idx > 1,
callback = function()
_showBookmarkDetails(1)
end,
},
{
text = "◁",
enabled = item_idx > 1,
callback = function()
_showBookmarkDetails(item_idx - 1)
end,
},
{
text = "▷",
enabled = item_idx < items_nb,
callback = function()
_showBookmarkDetails(item_idx + 1)
end,
},
{
text = "▷▏",
enabled = item_idx < items_nb,
callback = function()
_showBookmarkDetails(items_nb)
end,
},
},
{
{
text = _("Reset text"),
@@ -1220,12 +1250,6 @@ function ReaderBookmark:showBookmarkDetails(item_or_index)
},
},
{
{
text = _("Close"),
callback = function()
textviewer:onClose()
end,
},
{
text = _("Go to bookmark"),
enabled = not (bm_menu and bm_menu.select_count),
@@ -1236,34 +1260,10 @@ function ReaderBookmark:showBookmarkDetails(item_or_index)
end
end,
},
},
{
{
text = "▕◁",
enabled = item_idx > 1,
text = _("Close"),
callback = function()
_showBookmarkDetails(1)
end,
},
{
text = "◁",
enabled = item_idx > 1,
callback = function()
_showBookmarkDetails(item_idx - 1)
end,
},
{
text = "▷",
enabled = item_idx < items_nb,
callback = function()
_showBookmarkDetails(item_idx + 1)
end,
},
{
text = "▷▏",
enabled = item_idx < items_nb,
callback = function()
_showBookmarkDetails(items_nb)
textviewer:onClose()
end,
},
},
@@ -1373,7 +1373,7 @@ end
function ReaderHighlight:showHighlightDialog(index)
local item = self.ui.annotation.annotations[index]
local change_boundaries_enabled = not item.text_edited
local start_prev, start_next, end_prev, end_next = "◁▒▒", "▷▒▒", "▒▒◁", "▒▒▷"
local start_prev, start_next, end_prev, end_next = "◁▒▒", "▷☓▒", "▒☓◁", "▒▒▷"
if BD.mirroredUILayout() then
-- BiDi will mirror the arrows, and this just works
start_prev, start_next = start_next, start_prev