Add search book icon (#7777)

This commit is contained in:
Chris LaFreniere
2019-10-17 17:20:07 -07:00
committed by GitHub
parent 268f9ef725
commit 80d46fb8a4
3 changed files with 17 additions and 2 deletions

View File

@@ -152,8 +152,8 @@
"command": "notebook.command.searchBook", "command": "notebook.command.searchBook",
"title": "%title.searchJupyterBook%", "title": "%title.searchJupyterBook%",
"icon": { "icon": {
"dark": "resources/dark/manage_inverse.svg", "dark": "resources/dark/search_inverse.svg",
"light": "resources/light/manage.svg" "light": "resources/light/search.svg"
} }
} }
], ],
@@ -268,6 +268,11 @@
} }
], ],
"view/item/context": [ "view/item/context": [
{
"command": "notebook.command.searchBook",
"when": "view =~ /^(untitledBookTreeView|bookTreeView)$/ && viewItem =~ /^(untitledBook|savedBook)$/ && notebookQuality != stable",
"group": "inline"
},
{ {
"command": "notebook.command.saveBook", "command": "notebook.command.saveBook",
"when": "view == untitledBookTreeView && viewItem == untitledBook && untitledBooks && notebookQuality != stable", "when": "view == untitledBookTreeView && viewItem == untitledBook && untitledBooks && notebookQuality != stable",

View File

@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<title>opac_command_icons_bv</title>
<path d="M10.5,0a5.434,5.434,0,0,1,2.773.75A5.616,5.616,0,0,1,15.25,2.727a5.489,5.489,0,0,1,0,5.546,5.616,5.616,0,0,1-1.977,1.977,5.5,5.5,0,0,1-4.644.422,5.625,5.625,0,0,1-1.645-.945L.851,15.852A.479.479,0,0,1,.5,16a.48.48,0,0,1-.352-.148.493.493,0,0,1,0-.7L6.273,9.016a5.625,5.625,0,0,1-.945-1.645A5.383,5.383,0,0,1,5,5.5a5.434,5.434,0,0,1,.75-2.773,5.531,5.531,0,0,1,.863-1.114A5.59,5.59,0,0,1,7.726.75,5.5,5.5,0,0,1,9.039.2,5.439,5.439,0,0,1,10.5,0Zm0,10a4.356,4.356,0,0,0,1.75-.355A4.528,4.528,0,0,0,14.644,7.25a4.479,4.479,0,0,0,0-3.5A4.528,4.528,0,0,0,12.25,1.355a4.491,4.491,0,0,0-3.5,0,4.526,4.526,0,0,0-2.395,2.4A4.353,4.353,0,0,0,6,5.5a4.353,4.353,0,0,0,.355,1.75A4.526,4.526,0,0,0,8.75,9.645,4.353,4.353,0,0,0,10.5,10Z" fill="#fff"/>
<rect width="16" height="16" fill="none"/>
</svg>

After

Width:  |  Height:  |  Size: 922 B

View File

@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<title>opac_command_icons_bv</title>
<path d="M10.5,0a5.434,5.434,0,0,1,2.773.75A5.616,5.616,0,0,1,15.25,2.727a5.489,5.489,0,0,1,0,5.546,5.616,5.616,0,0,1-1.977,1.977,5.5,5.5,0,0,1-4.644.422,5.625,5.625,0,0,1-1.645-.945L.851,15.852A.479.479,0,0,1,.5,16a.48.48,0,0,1-.352-.148.493.493,0,0,1,0-.7L6.273,9.016a5.625,5.625,0,0,1-.945-1.645A5.383,5.383,0,0,1,5,5.5a5.434,5.434,0,0,1,.75-2.773,5.531,5.531,0,0,1,.863-1.114A5.59,5.59,0,0,1,7.726.75,5.5,5.5,0,0,1,9.039.2,5.439,5.439,0,0,1,10.5,0Zm0,10a4.356,4.356,0,0,0,1.75-.355A4.528,4.528,0,0,0,14.644,7.25a4.479,4.479,0,0,0,0-3.5A4.528,4.528,0,0,0,12.25,1.355a4.491,4.491,0,0,0-3.5,0,4.526,4.526,0,0,0-2.395,2.4A4.353,4.353,0,0,0,6,5.5a4.353,4.353,0,0,0,.355,1.75A4.526,4.526,0,0,0,8.75,9.645,4.353,4.353,0,0,0,10.5,10Z"/>
<rect width="16" height="16" fill="none"/>
</svg>

After

Width:  |  Height:  |  Size: 910 B