forked from openlp/openlp
added margin back; added missing spaces
This commit is contained in:
parent
988e632676
commit
baec0f5c69
@ -41,6 +41,7 @@ HTMLSRC = u"""
|
|||||||
<title>OpenLP Display</title>
|
<title>OpenLP Display</title>
|
||||||
<style>
|
<style>
|
||||||
*{
|
*{
|
||||||
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -56,41 +57,41 @@ body {
|
|||||||
height: %spx;
|
height: %spx;
|
||||||
}
|
}
|
||||||
#black {
|
#black {
|
||||||
z-index:8;
|
z-index: 8;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#bgimage {
|
#bgimage {
|
||||||
z-index:1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
#image {
|
#image {
|
||||||
z-index:2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
#video1 {
|
#video1 {
|
||||||
z-index:3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
#video2 {
|
#video2 {
|
||||||
z-index:3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
#alert {
|
#alert {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
z-index:10;
|
z-index: 10;
|
||||||
%s
|
%s
|
||||||
}
|
}
|
||||||
#footer {
|
#footer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index:6;
|
z-index: 6;
|
||||||
%s
|
%s
|
||||||
}
|
}
|
||||||
/* lyric css */
|
/* lyric css */
|
||||||
%s
|
%s
|
||||||
sup {
|
sup {
|
||||||
font-size:0.6em;
|
font-size: 0.6em;
|
||||||
vertical-align:top;
|
vertical-align: top;
|
||||||
position:relative;
|
position: relative;
|
||||||
top:-0.3em;
|
top: -0.3em;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
@ -446,15 +447,15 @@ def build_lyrics_css(item, webkitvers):
|
|||||||
The version of qtwebkit we're using
|
The version of qtwebkit we're using
|
||||||
|
|
||||||
"""
|
"""
|
||||||
style = """
|
style = u"""
|
||||||
.lyricstable {
|
.lyricstable {
|
||||||
z-index:5;
|
z-index: 5;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: table;
|
display: table;
|
||||||
%s
|
%s
|
||||||
}
|
}
|
||||||
.lyricscell {
|
.lyricscell {
|
||||||
display:table-cell;
|
display: table-cell;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
%s
|
%s
|
||||||
}
|
}
|
||||||
@ -558,8 +559,8 @@ def build_lyrics_format_css(theme, width, height):
|
|||||||
left_margin = 0
|
left_margin = 0
|
||||||
lyrics = u'white-space:pre-wrap; word-wrap: break-word; ' \
|
lyrics = u'white-space:pre-wrap; word-wrap: break-word; ' \
|
||||||
'text-align: %s; vertical-align: %s; font-family: %s; ' \
|
'text-align: %s; vertical-align: %s; font-family: %s; ' \
|
||||||
'font-size: %spt; color: %s; line-height: %d%%; margin:0;' \
|
'font-size: %spt; color: %s; line-height: %d%%; margin: 0;' \
|
||||||
'padding:0; padding-left:%spx; width: %spx; height: %spx; ' % \
|
'padding: 0; padding-left: %spx; width: %spx; height: %spx; ' % \
|
||||||
(align, valign, theme.font_main_name, theme.font_main_size,
|
(align, valign, theme.font_main_name, theme.font_main_size,
|
||||||
theme.font_main_color, 100 + int(theme.font_main_line_adjustment),
|
theme.font_main_color, 100 + int(theme.font_main_line_adjustment),
|
||||||
left_margin, width, height)
|
left_margin, width, height)
|
||||||
@ -608,7 +609,7 @@ def build_footer_css(item, height):
|
|||||||
``item``
|
``item``
|
||||||
Service Item to be processed.
|
Service Item to be processed.
|
||||||
"""
|
"""
|
||||||
style = """
|
style = u"""
|
||||||
left: %spx;
|
left: %spx;
|
||||||
bottom: %spx;
|
bottom: %spx;
|
||||||
width: %spx;
|
width: %spx;
|
||||||
@ -616,7 +617,7 @@ def build_footer_css(item, height):
|
|||||||
font-size: %spt;
|
font-size: %spt;
|
||||||
color: %s;
|
color: %s;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
white-space:nowrap;
|
white-space: nowrap;
|
||||||
"""
|
"""
|
||||||
theme = item.themedata
|
theme = item.themedata
|
||||||
if not theme or not item.footer:
|
if not theme or not item.footer:
|
||||||
@ -634,7 +635,7 @@ def build_alert_css(alertTab, width):
|
|||||||
``alertTab``
|
``alertTab``
|
||||||
Details from the Alert tab for fonts etc
|
Details from the Alert tab for fonts etc
|
||||||
"""
|
"""
|
||||||
style = """
|
style = u"""
|
||||||
width: %spx;
|
width: %spx;
|
||||||
vertical-align: %s;
|
vertical-align: %s;
|
||||||
font-family: %s;
|
font-family: %s;
|
||||||
|
@ -495,6 +495,7 @@ class MainDisplay(QtGui.QGraphicsView):
|
|||||||
self.isLive, background, image_bytes)
|
self.isLive, background, image_bytes)
|
||||||
log.debug(u'buildHtml - pre setHtml')
|
log.debug(u'buildHtml - pre setHtml')
|
||||||
self.webView.setHtml(html)
|
self.webView.setHtml(html)
|
||||||
|
open(u'/tmp/branch.html', u'w').write(html)
|
||||||
log.debug(u'buildHtml - post setHtml')
|
log.debug(u'buildHtml - post setHtml')
|
||||||
if serviceItem.foot_text:
|
if serviceItem.foot_text:
|
||||||
self.footer(serviceItem.foot_text)
|
self.footer(serviceItem.foot_text)
|
||||||
|
Loading…
Reference in New Issue
Block a user