From 26c4222cfb5bb199e9867b94971355cf2c7658c8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 14 Mar 2009 12:22:17 +0900 Subject: [PATCH] more progress bar tweaks --- ankiqt/__init__.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ankiqt/__init__.py b/ankiqt/__init__.py index ccc35759b..316e0579e 100644 --- a/ankiqt/__init__.py +++ b/ankiqt/__init__.py @@ -36,8 +36,7 @@ class SplashScreen(object): self.splash = QSplashScreen(self.pixmap) self.prog = QProgressBar(self.splash) self.prog.setMaximum(max) - if (QApplication.instance().style().objectName() != "plastique" - and not sys.platform.startswith("darwin")): + if QApplication.instance().style().objectName() != "plastique": self.style = QStyleFactory.create("plastique") self.prog.setStyle(self.style) self.prog.setStyleSheet("""* { @@ -45,8 +44,12 @@ color: #ffffff; background-color: #061824; margin:0px; border:0px; -text-align: center; -padding: 0px;}""") +padding: 0px; +text-align: center;} +*::chunk { +color: #13486c; +} +""") x = 8 self.prog.setGeometry(self.splash.width()/10, 8.85*self.splash.height()/10, x*self.splash.width()/10, self.splash.height()/10)