splash screen from Xtru

This commit is contained in:
Damien Elmes 2009-03-14 10:33:32 +09:00
parent 1d855589c1
commit 11ff28310b
2 changed files with 6 additions and 1 deletions

View file

@ -36,10 +36,15 @@ class SplashScreen(object):
self.splash = QSplashScreen(self.pixmap)
self.prog = QProgressBar(self.splash)
self.prog.setMaximum(max)
if QApplication.instance().style().objectName() != "plastique":
self.prog.setStyle(QStyleFactory.create("plastique"))
self.prog.setStyleSheet("""* {
color: #ffffff;
background-color: #0d3048;}""")
x = 8
if sys.platform.startswith("win32"):
x += 1
self.prog.setGeometry(self.splash.width()/10, 8*self.splash.height()/10,
self.prog.setGeometry(self.splash.width()/10, 8.85*self.splash.height()/10,
x*self.splash.width()/10, self.splash.height()/10)
self.splash.show()
self.val = 1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB