mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-24 10:34:28 +08:00
Merge pull request #844 from thopiekar/master-CURA-1676
[CURA-1676] SplashScreen: Using system-default fontfamily
This commit is contained in:
commit
41e30f4424
@ -25,10 +25,14 @@ class CuraSplashScreen(QSplashScreen):
|
|||||||
if buildtype:
|
if buildtype:
|
||||||
version[0] += " (%s)" %(buildtype)
|
version[0] += " (%s)" %(buildtype)
|
||||||
|
|
||||||
painter.setFont(QFont("Proxima Nova Rg", 20 ))
|
used_font = QFont() # Using system-default font here
|
||||||
|
used_font.setPointSize(20)
|
||||||
|
painter.setFont(used_font)
|
||||||
painter.drawText(0, 0, 330 * self._scale, 230 * self._scale, Qt.AlignHCenter | Qt.AlignBottom, version[0])
|
painter.drawText(0, 0, 330 * self._scale, 230 * self._scale, Qt.AlignHCenter | Qt.AlignBottom, version[0])
|
||||||
if len(version) > 1:
|
if len(version) > 1:
|
||||||
painter.setFont(QFont("Proxima Nova Rg", 12 ))
|
used_font = QFont() # Using system-default font here
|
||||||
|
used_font.setPointSize(12)
|
||||||
|
painter.setFont(used_font)
|
||||||
painter.drawText(0, 0, 330 * self._scale, 255 * self._scale, Qt.AlignHCenter | Qt.AlignBottom, version[1])
|
painter.drawText(0, 0, 330 * self._scale, 255 * self._scale, Qt.AlignHCenter | Qt.AlignBottom, version[1])
|
||||||
|
|
||||||
painter.restore()
|
painter.restore()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user