Make the messages in the splash screen look a little nicer

This commit is contained in:
Kovid Goyal 2015-07-15 11:24:34 +05:30
parent a9a5e39279
commit 6be8b7ce7c

View File

@ -171,7 +171,10 @@ class SplashScreen(QSplashScreen):
painter.setBackground(QBrush(QColor(0xee, 0xee, 0xee)))
painter.setPen(Qt.black)
painter.setRenderHint(painter.TextAntialiasing, True)
painter.drawText(self.rect().adjusted(5, 5, -5, -5), Qt.AlignLeft, self.message())
r = self.rect().adjusted(5, 5, -5, -5)
br = painter.drawText(r, Qt.AlignLeft, self.message())
painter.fillRect(br.adjusted(-2, -3, 80, 3), painter.background())
br = painter.drawText(r, Qt.AlignLeft, self.message())
def show_message(self, msg):
self.showMessage(msg)