forked from openlp/openlp
Fix bug #1117098: Transparent theme is white on Mac OS X
bzr-revno: 2170 Fixes: https://launchpad.net/bugs/1117098
This commit is contained in:
commit
f555a103f0
@ -175,8 +175,10 @@ class MainDisplay(Display):
|
||||
def setTransparency(self, enabled):
|
||||
if enabled:
|
||||
self.setAutoFillBackground(False)
|
||||
self.setStyleSheet("QGraphicsView {background: transparent; border: 0px;}")
|
||||
else:
|
||||
self.setAttribute(QtCore.Qt.WA_NoSystemBackground, False)
|
||||
self.setStyleSheet("QGraphicsView {}")
|
||||
self.setAttribute(QtCore.Qt.WA_TranslucentBackground, enabled)
|
||||
self.repaint()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user