Add icon for `folder on top` button.

* src/vorta/assets/icons/folder-on-top.svg : Add icon to repo.

* src/vorta/views/diff_result.py (DiffDialog.set_icons): Set icon.
* src/vorta/views/extract_dialog.py (ExtractDialog.set_icons): Set icon.
This commit is contained in:
real-yfprojects 2022-07-15 15:07:36 +02:00
parent 372b7107dd
commit cbc0780caa
No known key found for this signature in database
GPG Key ID: 00F630DFDEE25747
3 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path fill="#000000" d="M 4 4 L 4 28 L 18 28 L 18 27 L 5 27 L 5 14 L 10 14 L 13 11 L 27 11 L 27 16 L 28 16 L 28 7 L 18 7 L 15 4 L 4 4 z M 23 16 L 18 21 L 18.707031 21.707031 L 22.5 17.914062 L 22.5 28.003906 L 23.5 28.003906 L 23.5 17.914062 L 27.292969 21.707031 L 28 21 L 24 17 L 23 16 z " id="path71" class="ColorScheme-Text" />
</svg>

After

Width:  |  Height:  |  Size: 401 B

View File

@ -125,6 +125,7 @@ class DiffResultDialog(DiffResultBase, DiffResultUI):
def set_icons(self):
"""Set or update the icons in the right color scheme."""
self.bCollapseAll.setIcon(get_colored_icon('angle-up-solid'))
self.bFoldersOnTop.setIcon(get_colored_icon('folder-on-top'))
def treeview_context_menu(self, pos: QPoint):
"""Display a context menu for `treeView`."""

View File

@ -125,6 +125,7 @@ class ExtractDialog(ExtractDialogBase, ExtractDialogUI):
def set_icons(self):
"""Set or update the icons in the right color scheme."""
self.bFoldersOnTop.setIcon(get_colored_icon('folder-on-top'))
self.bCollapseAll.setIcon(get_colored_icon('angle-up-solid'))
def slot_sorted(self, column, order):