Changed a bit how novelWriter icon and dialog decoration is loaded

This commit is contained in:
Veronica K. B. Olsen
2020-07-12 17:30:40 +02:00
parent 8c895319e5
commit 5749b1948f
5 changed files with 40 additions and 29 deletions
+3 -2
View File
@@ -79,8 +79,9 @@ class GuiProjectLoad(QDialog):
self.setMinimumHeight(self.mainConf.pxInt(400))
self.setModal(True)
self.guiDeco = self.theTheme.loadDecoration("nwicon", (nPx, nPx))
self.innerBox.addWidget(self.guiDeco, 0, Qt.AlignTop)
self.nwIcon = QLabel()
self.nwIcon.setPixmap(self.theParent.theTheme.getPixmap("novelwriter", (nPx, nPx)))
self.innerBox.addWidget(self.nwIcon, 0, Qt.AlignTop)
self.projectForm = QGridLayout()
self.projectForm.setContentsMargins(0, 0, 0, 0)