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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user