use custom folder icon

This commit is contained in:
2022-09-03 18:31:23 +02:00
parent 160fcaeafc
commit b93a5d7009
2 changed files with 18 additions and 1 deletions

17
icons/myicons/folder.svg Normal file
View File

@@ -0,0 +1,17 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 64 64">
<path d="
M5,50
L5,10
C5,5 10,5 10,5
L20,5
C23,5 25,9 25,9
C25,9,28,15 30,15
L55,15
C60,15 60.5,20 60,20
L60,50
C60,55 55,55 55,55
L10,55
C10,55 5,55 5,50"
style="fill:#ddd;stroke:black; stroke-width:4;"
transform="translate(0.5,0.5)"/>
</svg>

After

Width:  |  Height:  |  Size: 366 B

View File

@@ -30,7 +30,7 @@ class FilesBrowserWidget(Tab):
self._base_dir = QLineEdit(self._initialFolder()) self._base_dir = QLineEdit(self._initialFolder())
self._base_dir.textChanged.connect(self._base_dir_changed) self._base_dir.textChanged.connect(self._base_dir_changed)
btn_select_base_dir = QPushButton(Icon("icons/ionicons/folder-open.svg"), "") btn_select_base_dir = QPushButton(Icon("icons/myicons/folder.svg"), "")
btn_select_base_dir.pressed.connect(self._select_base_dir) btn_select_base_dir.pressed.connect(self._select_base_dir)
btn_base_dir_for_current_file = QPushButton(Icon("icons/myicons/target.svg"), "") btn_base_dir_for_current_file = QPushButton(Icon("icons/myicons/target.svg"), "")