15
15
16
16
from fontTools import __version__ as fonttools_version
17
17
from PyQt5 .QtCore import QDir , Qt
18
- from PyQt5 .QtGui import QImage , QPixmap
18
+ from PyQt5 .QtGui import QIcon , QImage , QPixmap
19
19
from PyQt5 .QtWidgets import (
20
20
QDialog ,
21
21
QDialogButtonBox ,
@@ -36,6 +36,7 @@ def __init__(self):
36
36
self .root_directory = QDir .homePath ()
37
37
38
38
self .setWindowTitle ("Open File" )
39
+ self .setWindowIcon (QIcon (":/img/slice-icon.svg" ))
39
40
# options |= QFileDialog.DontUseNativeDialog
40
41
41
42
file_path , _ = self .getOpenFileName (
@@ -60,6 +61,7 @@ def __init__(self, root_directory=None):
60
61
self .root_directory = None
61
62
62
63
self .setWindowTitle ("Save File" )
64
+ self .setWindowIcon (QIcon (":/img/slice-icon.svg" ))
63
65
64
66
if root_directory :
65
67
self .root_directory = root_directory
@@ -85,6 +87,9 @@ class SliceAboutDialog(QDialog):
85
87
def __init__ (self , version ):
86
88
QDialog .__init__ (self )
87
89
90
+ self .setWindowTitle ("About Slice" )
91
+ self .setWindowIcon (QIcon (":/img/slice-icon.svg" ))
92
+
88
93
QBtn = QDialogButtonBox .Ok
89
94
self .buttonBox = QDialogButtonBox (QBtn )
90
95
self .buttonBox .accepted .connect (self .accept )
0 commit comments