From 5774a6ef9a9401b7caab84a365040afee0a6c23e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 6 Dec 2019 17:12:01 +0530 Subject: [PATCH] Use the same ToC icon for viewer as for rest of calibre --- imgsrc/srv/toc.svg | 3 +++ src/pyj/read_book/overlay.pyj | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 imgsrc/srv/toc.svg diff --git a/imgsrc/srv/toc.svg b/imgsrc/srv/toc.svg new file mode 100644 index 0000000000..cb560ea14a --- /dev/null +++ b/imgsrc/srv/toc.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/pyj/read_book/overlay.pyj b/src/pyj/read_book/overlay.pyj index 012b0dfe34..e62e955240 100644 --- a/src/pyj/read_book/overlay.pyj +++ b/src/pyj/read_book/overlay.pyj @@ -255,7 +255,7 @@ class MainOverlay: # {{{ nav_actions = E.ul(home_action, back_action, forward_action) bookmarks_action = ac(_('Bookmarks'), None, self.overlay.show_bookmarks, 'bookmark') - toc_actions = E.ul(ac(_('Table of Contents'), None, self.overlay.show_toc, 'TC', True)) + toc_actions = E.ul(ac(_('Table of Contents'), None, self.overlay.show_toc, 'toc')) if runtime.is_standalone_viewer: toc_actions.appendChild(bookmarks_action)