mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
tweak progress dialog
This commit is contained in:
parent
74b71ea8c6
commit
05b6a90470
1 changed files with 9 additions and 5 deletions
|
|
@ -36,14 +36,18 @@ class SplashScreen(object):
|
||||||
self.splash = QSplashScreen(self.pixmap)
|
self.splash = QSplashScreen(self.pixmap)
|
||||||
self.prog = QProgressBar(self.splash)
|
self.prog = QProgressBar(self.splash)
|
||||||
self.prog.setMaximum(max)
|
self.prog.setMaximum(max)
|
||||||
if QApplication.instance().style().objectName() != "plastique":
|
if (QApplication.instance().style().objectName() != "plastique"):
|
||||||
self.prog.setStyle(QStyleFactory.create("plastique"))
|
#and sys.platform.startswith("win32")):
|
||||||
|
self.style = QStyleFactory.create("plastique")
|
||||||
|
self.prog.setStyle(self.style)
|
||||||
self.prog.setStyleSheet("""* {
|
self.prog.setStyleSheet("""* {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
background-color: #0d3048;}""")
|
background-color: #061824;
|
||||||
|
margin:0px;
|
||||||
|
border:0px;
|
||||||
|
text-align: center;
|
||||||
|
padding: 0px;}""")
|
||||||
x = 8
|
x = 8
|
||||||
if sys.platform.startswith("win32"):
|
|
||||||
x += 1
|
|
||||||
self.prog.setGeometry(self.splash.width()/10, 8.85*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)
|
x*self.splash.width()/10, self.splash.height()/10)
|
||||||
self.splash.show()
|
self.splash.show()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue