use custom copy icon
This commit is contained in:
15
icons/myicons/edit-copy.svg
Normal file
15
icons/myicons/edit-copy.svg
Normal 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 |
@@ -184,7 +184,7 @@ class InnerBigText(QWidget):
|
|||||||
def _open_menu(self, position):
|
def _open_menu(self, position):
|
||||||
menu = QMenu(self)
|
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)
|
triggered=self.copy_selection)
|
||||||
copy_clipboard.setShortcut("CTRL+C")
|
copy_clipboard.setShortcut("CTRL+C")
|
||||||
copy_clipboard.setDisabled(not self._has_selection())
|
copy_clipboard.setDisabled(not self._has_selection())
|
||||||
|
|||||||
Reference in New Issue
Block a user