← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~patrick-zakweb/openlp/bug-936281-for20 into lp:openlp

 

mohij has proposed merging lp:~patrick-zakweb/openlp/bug-936281-for20 into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)

For more details, see:
https://code.launchpad.net/~patrick-zakweb/openlp/bug-936281-for20/+merge/135550

Remove alternating row colors on Windows OS. No configuration.

Tested on Kubuntu 12.04 and Windows XP.

I'll add the full version based on this later. Need to go to bed now.
-- 
https://code.launchpad.net/~patrick-zakweb/openlp/bug-936281-for20/+merge/135550
Your team OpenLP Core is requested to review the proposed merge of lp:~patrick-zakweb/openlp/bug-936281-for20 into lp:openlp.
=== modified file 'openlp/core/__init__.py'
--- openlp/core/__init__.py	2012-11-11 21:16:14 +0000
+++ openlp/core/__init__.py	2012-11-21 23:19:24 +0000
@@ -60,7 +60,7 @@
 
 
 log = logging.getLogger()
-application_stylesheet = u"""
+nt_repair_stylesheet = u"""
 QMainWindow::separator
 {
   border: none;
@@ -128,8 +128,16 @@
             if FirstTimeForm(screens).exec_() == QtGui.QDialog.Accepted:
                 Settings().setValue(u'general/has run wizard',
                     QtCore.QVariant(True))
+        # Correct stylesheet bugs
         if os.name == u'nt':
+            base_color = self.palette().color(QtGui.QPalette.Active,
+                QtGui.QPalette.Base)
+            application_stylesheet = \
+            u'* {alternate-background-color: ' + \
+            base_color.name() + ';}\n'
+            application_stylesheet += nt_repair_stylesheet
             self.setStyleSheet(application_stylesheet)
+        # show the splashscreen
         show_splash = Settings().value(
             u'general/show splash', QtCore.QVariant(True)).toBool()
         if show_splash:


Follow ups