use custom copy icon

This commit is contained in:
2022-09-03 17:32:25 +02:00
parent a9038b7231
commit 11f4262b96
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<rect x="1.5" y="1.5" width="8" height="11"
style="fill:#ccc; stroke: black; stroke-linejoin:round;"/>
<rect x="5.5" y="4.5" width="8" height="11"
style="fill:#eee; stroke: black; stroke-linejoin:round;"/>
<line x1="7.5" y1="6.5" x2="11.5" y2="6.5" style="stroke: black; stroke-linecap:round; "/>
<line x1="7.5" y1="8.5" x2="9.5" y2="8.5" style="stroke: black; stroke-linecap:round;"/>
<line x1="7.5" y1="10.5" x2="10.5" y2="10.5" style="stroke: black; stroke-linecap:round;"/>
<line x1="7.5" y1="12.5" x2="9.5" y2="12.5" style="stroke: black; stroke-linecap:round;"/>
</svg>

After

Width:  |  Height:  |  Size: 709 B

View File

@@ -184,7 +184,7 @@ class InnerBigText(QWidget):
def _open_menu(self, position):
menu = QMenu(self)
copy_clipboard = QAction(Icon.fromTheme("edit-copy"), _("&Copy to Clipboard"), self,
copy_clipboard = QAction(Icon("icons/myicons/edit-copy.svg"), _("&Copy to Clipboard"), self,
triggered=self.copy_selection)
copy_clipboard.setShortcut("CTRL+C")
copy_clipboard.setDisabled(not self._has_selection())