Use the same ToC icon for viewer as for rest of calibre

This commit is contained in:
Kovid Goyal 2019-12-06 17:12:01 +05:30
parent 55ba61babc
commit 5774a6ef9a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 1 deletions

3
imgsrc/srv/toc.svg Normal file
View File

@ -0,0 +1,3 @@
<svg viewBox="0 0 128 128" height="128" width="128">
<path d="M 47.913909,73.44346 M 6.3604493,57.45533 H 44.252305 a 5.358445,5.3634115 0 0 0 0,-10.72682 H 6.3604493 a 5.358445,5.3634115 0 1 0 0,10.72682 z m 0,-21.36425 H 46.854978 a 5.3584485,5.363415 0 0 0 0,-10.72683 H 6.3604493 a 5.3584485,5.363415 0 1 0 0,10.72683 z m 0,-21.36426 H 64.193373 A 5.358445,5.3634115 0 0 0 64.193373,4 H 6.3604493 a 5.358445,5.3634115 0 1 0 0,10.72682 z M 127.002,100.60534 v 23.3947 H 61.169679 L 27.283898,95.43344 a 4.7843252,4.7887596 0 0 1 2.360267,-8.4027 v 0 a 22.964761,22.986046 0 0 1 16.496354,3.7672 l 12.885783,8.939 1.518225,-65.61244 a 8.7393675,8.7474677 0 1 1 17.478735,0 l 2.309235,38.46337 28.157343,5.51667 a 22.964761,22.986046 0 0 1 18.51216,22.5008 z" />
</svg>

After

Width:  |  Height:  |  Size: 773 B

View File

@ -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)