forked from openlp/openlp
Figured out what my problem was -- black text on a black background
This commit is contained in:
parent
7f0d4c635f
commit
552dc60d21
@ -6,6 +6,7 @@
|
||||
<style type="text/css">
|
||||
body {
|
||||
background: #000 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.reveal .slides > section, .reveal .slides > section > section {
|
||||
padding: 0;
|
||||
@ -14,7 +15,6 @@
|
||||
<script type="text/javascript" src="qrc:///qtwebchannel/qwebchannel.js"></script>
|
||||
<script type="text/javascript" src="reveal.js"></script>
|
||||
<script type="text/javascript" src="display.js"></script>
|
||||
<script type="text/javascript">console.log(Display);</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="reveal">
|
||||
|
@ -25,6 +25,7 @@ The :mod:`~openlp.core.display.window` module contains the display window
|
||||
import logging
|
||||
import os
|
||||
import json
|
||||
from inspect import currentframe, getouterframes
|
||||
|
||||
from PyQt5 import QtCore, QtWidgets, QtWebChannel
|
||||
|
||||
@ -122,6 +123,7 @@ class DisplayWindow(QtWidgets.QWidget):
|
||||
self.webview.page().setWebChannel(self.channel)
|
||||
if screen and screen.is_display:
|
||||
self.update_from_screen(screen)
|
||||
print(getouterframes(currentframe(), 2)[1][3])
|
||||
|
||||
def update_from_screen(self, screen):
|
||||
"""
|
||||
@ -276,3 +278,9 @@ class DisplayWindow(QtWidgets.QWidget):
|
||||
Get the types of videos playable by the embedded media player
|
||||
"""
|
||||
return self.run_javascript('Display.getVideoTypes();', is_sync=True)
|
||||
|
||||
def show_display(self):
|
||||
"""
|
||||
Show the display
|
||||
"""
|
||||
self.run_javascript('Display.show();')
|
||||
|
@ -139,8 +139,8 @@ class SlideController(QtWidgets.QWidget, LogMixin, RegistryProperties):
|
||||
# Delete any existing displays
|
||||
del self.displays[:]
|
||||
# for screen in self.screens:
|
||||
display = DisplayWindow(self, self.screens.current)
|
||||
self.displays.append(display)
|
||||
# display = DisplayWindow(self, self.screens.current)
|
||||
# self.displays.append(display)
|
||||
# display.media_watcher.progress.connect(self.on_audio_time_remaining)
|
||||
|
||||
@property
|
||||
@ -748,7 +748,7 @@ class SlideController(QtWidgets.QWidget, LogMixin, RegistryProperties):
|
||||
if item.is_text():
|
||||
self.preview_display.load_verses([{'verse': f['verseTag'], 'text': f['raw_slide']}
|
||||
for f in item._raw_frames])
|
||||
self.display
|
||||
self.preview_display.show_display()
|
||||
# slide_no = 0
|
||||
# if self.song_edit:
|
||||
# slide_no = self.selected_row
|
||||
|
Loading…
Reference in New Issue
Block a user