openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #18133
[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:
Raoul Snyman (raoul-snyman)
For more details, see:
https://code.launchpad.net/~patrick-zakweb/openlp/bug-936281-for20/+merge/135750
Remove alternating row colors on Windows OS. No configuration.
Tested on Kubuntu 12.04.
I'll add the full version based on this later.
--
https://code.launchpad.net/~patrick-zakweb/openlp/bug-936281-for20/+merge/135750
Your team OpenLP Core is subscribed to branch 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-22 18:05:30 +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