mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
splash screen from Xtru
This commit is contained in:
parent
1d855589c1
commit
11ff28310b
2 changed files with 6 additions and 1 deletions
|
@ -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 |
Loading…
Reference in a new issue