Video widget transparent background — matches QSS theme
Removes black letterboxing around videos in themed mode.
This commit is contained in:
parent
e895f5e702
commit
30de2fa6ed
@ -399,9 +399,9 @@ class VideoPlayer(QWidget):
|
|||||||
layout.setContentsMargins(0, 0, 0, 0)
|
layout.setContentsMargins(0, 0, 0, 0)
|
||||||
layout.setSpacing(0)
|
layout.setSpacing(0)
|
||||||
|
|
||||||
# Video surface
|
# Video surface — inherit theme background instead of black
|
||||||
self._video_widget = QVideoWidget()
|
self._video_widget = QVideoWidget()
|
||||||
self._video_widget.setAutoFillBackground(True)
|
self._video_widget.setStyleSheet("background: transparent;")
|
||||||
layout.addWidget(self._video_widget, stretch=1)
|
layout.addWidget(self._video_widget, stretch=1)
|
||||||
|
|
||||||
# Player
|
# Player
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user