diff --git a/openlp/core/lib/htmlbuilder.py b/openlp/core/lib/htmlbuilder.py
index 2fa7b0df0..33befca2a 100644
--- a/openlp/core/lib/htmlbuilder.py
+++ b/openlp/core/lib/htmlbuilder.py
@@ -72,7 +72,6 @@ body {
@@ -264,13 +227,13 @@ co-operating in qwebkit. https://bugs.webkit.org/show_bug.cgi?id=43187
Therefore one table for text, one for outline and one for shadow.
-->
|
@@ -312,8 +275,6 @@ def build_html(item, screen, alert):
build_alert(alert, width),
build_footer(item),
build_lyrics(item),
- u'true' if theme and theme.display_slideTransition \
- else u'false',
image)
return html
@@ -325,13 +286,15 @@ def build_lyrics(item):
Service Item containing theme and location information
"""
style = """
- .lyricscommon { position: absolute; %s }
- .lyricstable { z-index:4; %s }
- .lyricsoutlinetable { z-index:3; %s }
- .lyricsshadowtable { z-index:2; %s }
- .lyrics { %s }
- .lyricsoutline { %s }
- .lyricsshadow { %s }
+.lyricscommon { position: absolute; %s }
+.lyricstable { z-index:4; %s }
+.lyricsoutlinetable { z-index:3; %s }
+.lyricsshadowtable { z-index:2; %s }
+.lyrics { %s }
+.lyricsoutline { %s }
+.lyricsshadow { %s }
+td { opacity: 1; %s }
+td.fadeout { opacity: 0; }
"""
theme = item.themedata
lyricscommon = u''
@@ -341,6 +304,7 @@ def build_lyrics(item):
lyrics = u''
outline = u'display: none;'
shadow = u'display: none;'
+ transition = u''
if theme:
lyricscommon = u'width: %spx; height: %spx; word-wrap: break-word; ' \
u'font-family: %s; font-size: %spx; color: %s; line-height: %d%%;' % \
@@ -355,6 +319,8 @@ def build_lyrics(item):
(item.main.x() + float(theme.display_shadow_size),
item.main.y() + float(theme.display_shadow_size))
align = u''
+ if theme.display_slideTransition:
+ transition = u'-webkit-transition: opacity 5s ease-in-out;'
if theme.display_horizontalAlign == 2:
align = u'text-align:center;'
elif theme.display_horizontalAlign == 1:
@@ -382,7 +348,7 @@ def build_lyrics(item):
if theme.display_shadow:
shadow = u'color: %s;' % (theme.display_shadow_color)
lyrics_html = style % (lyricscommon, lyricstable, outlinetable,
- shadowtable, lyrics, outline, shadow)
+ shadowtable, lyrics, outline, shadow, transition)
return lyrics_html
def build_footer(item):
@@ -393,14 +359,14 @@ def build_footer(item):
Service Item to be processed.
"""
style = """
- left: %spx;
- top: %spx;
- width: %spx;
- height: %spx;
- font-family: %s;
- font-size: %spx;
- color: %s;
- text-align: %s;
+left: %spx;
+top: %spx;
+width: %spx;
+height: %spx;
+font-family: %s;
+font-size: %spx;
+color: %s;
+text-align: %s;
"""
theme = item.themedata
if not theme:
@@ -424,12 +390,12 @@ def build_alert(alertTab, width):
Details from the Alert tab for fonts etc
"""
style = """
- width: %s;
- vertical-align: %s;
- font-family: %s;
- font-size: %spx;
- color: %s;
- background-color: %s;
+width: %s;
+vertical-align: %s;
+font-family: %s;
+font-size: %spx;
+color: %s;
+background-color: %s;
"""
if not alertTab:
return u''