Skip to content

Commit 47e6248

Browse files
committed
Experimental disable video widget theme access for background color
1 parent f10ec7d commit 47e6248

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/windows/video_widget.py

+12-9
Original file line numberDiff line numberDiff line change
@@ -330,15 +330,18 @@ def paintEvent(self, event, *args):
330330
True)
331331

332332
# Get theme colors (if any)
333-
if get_app().theme_manager:
334-
theme = get_app().theme_manager.get_current_theme()
335-
if not theme:
336-
log.warning("No theme loaded yet. Skip rendering video preview widget.")
337-
return
338-
background_color = theme.get_color(".video_widget", "background-color")
339-
painter.fillRect(event.rect(), background_color)
340-
else:
341-
log.warning("No ThemeManager loaded yet. Skip rendering video preview widget.")
333+
# if get_app().theme_manager:
334+
# theme = get_app().theme_manager.get_current_theme()
335+
# if not theme:
336+
# log.warning("No theme loaded yet. Skip rendering video preview widget.")
337+
# return
338+
# background_color = theme.get_color(".video_widget", "background-color")
339+
# painter.fillRect(event.rect(), background_color)
340+
# else:
341+
# log.warning("No ThemeManager loaded yet. Skip rendering video preview widget.")
342+
343+
background_color = QColor("#191919")
344+
painter.fillRect(event.rect(), background_color)
342345

343346
# Find centered viewport
344347
viewport_rect = self.centeredViewport(self.width(), self.height())

0 commit comments

Comments
 (0)