forked from openlp/openlp
Removes border, but not affects to OSX border and shadow
This commit is contained in:
parent
0dd6c38139
commit
413c318427
@ -175,10 +175,10 @@ class MainDisplay(Display):
|
||||
def setTransparency(self, enabled):
|
||||
if enabled:
|
||||
self.setAutoFillBackground(False)
|
||||
self.setStyleSheet("QGraphicsView {background: transparent;}")
|
||||
self.setStyleSheet("QGraphicsView {background: transparent; border: 0px;}")
|
||||
else:
|
||||
self.setAttribute(QtCore.Qt.WA_NoSystemBackground, False)
|
||||
self.setStyleSheet("QGraphicsView {background: white;}")
|
||||
self.setStyleSheet("QGraphicsView {}")
|
||||
self.setAttribute(QtCore.Qt.WA_TranslucentBackground, enabled)
|
||||
self.repaint()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user