mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user