add custom icon for notes plugin menu item

This commit is contained in:
2022-09-18 09:29:07 +02:00
parent 6a18caaa9d
commit 2d414442e5
2 changed files with 10 additions and 1 deletions

9
icons/myicons/notes.svg Normal file
View File

@@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 16 16">
<g transform="translate(0.5,0.5)">
<rect x="2" y="0" width="11" height="15"
style="fill:#eee; stroke: black; stroke-linejoin:round;"/>
<circle cx="12" cy="12" r="3.5" style="fill: green;"/>
<line x1="10" y1="12" x2="14" y2="12" style="stroke: white; stroke-linecap:round;"/>
<line x1="12" y1="10" x2="12" y2="14" style="stroke: white; stroke-linecap:round;"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 512 B

View File

@@ -22,7 +22,7 @@ class NotesPlugin(PluginBase):
def _add_notes_tab_action(self) -> RAction:
open_file = RAction(_("&Notes"), self._add_notes_tab, shortcut='Ctrl+Shift+N',
icon_from_theme="filenew")
icon_file="icons/myicons/notes.svg")
return open_file
def _add_notes_tab(self):