use custom search icon

This commit is contained in:
2022-09-11 08:44:24 +02:00
parent 116325b160
commit 7f6f1578ba
3 changed files with 5 additions and 8 deletions

View File

@@ -1,7 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512">
<title>ionicons-v5-f</title>
<path d="M221.09,64A157.09,157.09,0,1,0,378.18,221.09,157.1,157.1,0,0,0,221.09,64Z"
style="fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:32px"/>
<line x1="338.29" y1="338.29" x2="448" y2="448"
style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/>
</svg>

Before

Width:  |  Height:  |  Size: 450 B

4
icons/myicons/search.svg Normal file
View File

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 16 16">
<circle cx="6.5" cy="6.5" r="5" style="fill:none;stroke:black;"/>
<line x1="10.3" y1="10.3" x2="14" y2="14" style="stroke:black;stroke-linecap:round;"/>
</svg>

After

Width:  |  Height:  |  Size: 254 B

View File

@@ -28,7 +28,7 @@ class FilesBrowserPlugin(PluginBase):
def _add_find_in_files_tab_action(self) -> RAction: def _add_find_in_files_tab_action(self) -> RAction:
return RAction(_("&Files Browser"), self._add_notes_tab, shortcut='Ctrl+Shift+F', return RAction(_("&Files Browser"), self._add_notes_tab, shortcut='Ctrl+Shift+F',
icon_file="icons/ionicons/search-outline.svg") icon_file="icons/myicons/search.svg")
def _add_notes_tab(self): def _add_notes_tab(self):
find_in_files = FilesBrowserWidget( find_in_files = FilesBrowserWidget(