diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2017-10-06 12:11:04 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2017-10-06 12:11:44 +0300 |
commit | c76b35ce3aafa30d8df30bfe905b1213262d033e (patch) | |
tree | 7296e0493a81c16b9363e8a75a7465633f770e81 /cura/CuraSplashScreen.py | |
parent | 9f0b85952afb91d20c74898669751186563523cb (diff) |
Update splash screen
CURA-4416
Diffstat (limited to 'cura/CuraSplashScreen.py')
-rw-r--r-- | cura/CuraSplashScreen.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cura/CuraSplashScreen.py b/cura/CuraSplashScreen.py index 2b79646408..f6ce703fa8 100644 --- a/cura/CuraSplashScreen.py +++ b/cura/CuraSplashScreen.py @@ -1,8 +1,6 @@ # Copyright (c) 2017 Ultimaker B.V. # Uranium is released under the terms of the LGPLv3 or higher. -from threading import Thread, Event - from PyQt5.QtCore import Qt, QCoreApplication, QTimer from PyQt5.QtGui import QPixmap, QColor, QFont, QPen, QPainter from PyQt5.QtWidgets import QSplashScreen @@ -10,6 +8,7 @@ from PyQt5.QtWidgets import QSplashScreen from UM.Resources import Resources from UM.Application import Application + class CuraSplashScreen(QSplashScreen): def __init__(self): super().__init__() @@ -26,7 +25,6 @@ class CuraSplashScreen(QSplashScreen): self._change_timer = QTimer() self._change_timer.setInterval(50) self._change_timer.setSingleShot(False) - #self.timeoutSignal.connect(self._onTimeout) self._change_timer.timeout.connect(self.updateLoadingImage) def show(self): @@ -62,12 +60,12 @@ class CuraSplashScreen(QSplashScreen): font = QFont() # Using system-default font here font.setPixelSize(37) painter.setFont(font) - painter.drawText(220, 66, 330 * self._scale, 230 * self._scale, Qt.AlignLeft | Qt.AlignTop, version[0]) + painter.drawText(215, 66, 330 * self._scale, 230 * self._scale, Qt.AlignLeft | Qt.AlignTop, version[0]) if len(version) > 1: font.setPointSize(12) painter.setFont(font) painter.setPen(QColor(200, 200, 200, 255)) - painter.drawText(252, 105, 330 * self._scale, 255 * self._scale, Qt.AlignLeft | Qt.AlignTop, version[1]) + painter.drawText(247, 105, 330 * self._scale, 255 * self._scale, Qt.AlignLeft | Qt.AlignTop, version[1]) painter.setPen(QColor(255, 255, 255, 255)) # draw the loading image |