mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:35:57 +08:00
Properly add and set the window icon
This commit is contained in:
parent
5f2d76aca9
commit
22fecc4cd0
@ -36,7 +36,7 @@ from . import PrintInformation
|
|||||||
from . import CuraActions
|
from . import CuraActions
|
||||||
|
|
||||||
from PyQt5.QtCore import pyqtSlot, QUrl, Qt, pyqtSignal, pyqtProperty
|
from PyQt5.QtCore import pyqtSlot, QUrl, Qt, pyqtSignal, pyqtProperty
|
||||||
from PyQt5.QtGui import QColor
|
from PyQt5.QtGui import QColor, QIcon
|
||||||
|
|
||||||
import platform
|
import platform
|
||||||
import sys
|
import sys
|
||||||
@ -52,6 +52,8 @@ class CuraApplication(QtApplication):
|
|||||||
|
|
||||||
super().__init__(name = "cura", version = "15.05.95")
|
super().__init__(name = "cura", version = "15.05.95")
|
||||||
|
|
||||||
|
self.setWindowIcon(QIcon(Resources.getPath(Resources.ImagesLocation, "cura-icon.png")))
|
||||||
|
|
||||||
self.setRequiredPlugins([
|
self.setRequiredPlugins([
|
||||||
"CuraEngineBackend",
|
"CuraEngineBackend",
|
||||||
"MeshView",
|
"MeshView",
|
||||||
|
BIN
resources/images/cura-icon.png
Normal file
BIN
resources/images/cura-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Loading…
x
Reference in New Issue
Block a user