Codebase list cura / c76b35c
Update splash screen CURA-4416 Lipu Fei 6 years ago
2 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
00 # Copyright (c) 2017 Ultimaker B.V.
11 # Uranium is released under the terms of the LGPLv3 or higher.
2
3 from threading import Thread, Event
42
53 from PyQt5.QtCore import Qt, QCoreApplication, QTimer
64 from PyQt5.QtGui import QPixmap, QColor, QFont, QPen, QPainter
86
97 from UM.Resources import Resources
108 from UM.Application import Application
9
1110
1211 class CuraSplashScreen(QSplashScreen):
1312 def __init__(self):
2524 self._change_timer = QTimer()
2625 self._change_timer.setInterval(50)
2726 self._change_timer.setSingleShot(False)
28 #self.timeoutSignal.connect(self._onTimeout)
2927 self._change_timer.timeout.connect(self.updateLoadingImage)
3028
3129 def show(self):
6159 font = QFont() # Using system-default font here
6260 font.setPixelSize(37)
6361 painter.setFont(font)
64 painter.drawText(220, 66, 330 * self._scale, 230 * self._scale, Qt.AlignLeft | Qt.AlignTop, version[0])
62 painter.drawText(215, 66, 330 * self._scale, 230 * self._scale, Qt.AlignLeft | Qt.AlignTop, version[0])
6563 if len(version) > 1:
6664 font.setPointSize(12)
6765 painter.setFont(font)
6866 painter.setPen(QColor(200, 200, 200, 255))
69 painter.drawText(252, 105, 330 * self._scale, 255 * self._scale, Qt.AlignLeft | Qt.AlignTop, version[1])
67 painter.drawText(247, 105, 330 * self._scale, 255 * self._scale, Qt.AlignLeft | Qt.AlignTop, version[1])
7068 painter.setPen(QColor(255, 255, 255, 255))
7169
7270 # draw the loading image
Binary diff not shown