From 49465b29294ded9841b32b190a3fd551c0d626cf Mon Sep 17 00:00:00 2001 From: Zeedif Date: Sat, 26 Jul 2025 14:32:29 -0600 Subject: [PATCH] feat(opds): enhance facet menu with icons This commit enhances the new facet context menu by adding icons for better visual distinction of actions like "Add catalog," "Search," and facet groups. It also corrects the main menu trigger icon to `appbar.menu` for consistency with its function. --- plugins/opds.koplugin/opdsbrowser.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/opds.koplugin/opdsbrowser.lua b/plugins/opds.koplugin/opdsbrowser.lua index ac3e5333a..f4b808577 100644 --- a/plugins/opds.koplugin/opdsbrowser.lua +++ b/plugins/opds.koplugin/opdsbrowser.lua @@ -147,7 +147,7 @@ function OPDSBrowser:showFacetMenu() -- Add sub-catalog to bookmarks option first table.insert(buttons, {{ - text = _("Add catalog"), + text = "\u{f067} " .. _("Add catalog"), callback = function() UIManager:close(dialog) self:addSubCatalog(catalog_url) @@ -173,7 +173,7 @@ function OPDSBrowser:showFacetMenu() if self.facet_groups then for group_name, facets in ffiUtil.orderedPairs(self.facet_groups) do table.insert(buttons, { - { text = group_name, enabled = false, align = "left" } + { text = "\u{f0b0} " .. group_name, enabled = false, align = "left" } }) for __, link in ipairs(facets) do @@ -688,7 +688,7 @@ function OPDSBrowser:updateCatalog(item_url, paths_updated) -- Set appropriate title bar icon based on content if self.facet_groups or self.search_url then - self:setTitleBarLeftIcon("appbar.settings") + self:setTitleBarLeftIcon("appbar.menu") self.onLeftButtonTap = function() self:showFacetMenu() end