forked from openlp/openlp
More fixes
This commit is contained in:
commit
764c3d42c9
@ -343,7 +343,7 @@ def build_lyrics(item):
|
|||||||
shadow = u'display: none;'
|
shadow = u'display: none;'
|
||||||
if theme:
|
if theme:
|
||||||
lyricscommon = u'width: %spx; height: %spx; word-wrap: break-word; ' \
|
lyricscommon = u'width: %spx; height: %spx; word-wrap: break-word; ' \
|
||||||
u'font-family: %s; font-size: %spx; color: %s; line-height: %d%%' % \
|
u'font-family: %s; font-size: %spx; color: %s; line-height: %d%%;' % \
|
||||||
(item.main.width(), item.main.height(),
|
(item.main.width(), item.main.height(),
|
||||||
theme.font_main_name, theme.font_main_proportion,
|
theme.font_main_name, theme.font_main_proportion,
|
||||||
theme.font_main_color, 100 + int(theme.font_main_line_adjustment))
|
theme.font_main_color, 100 + int(theme.font_main_line_adjustment))
|
||||||
@ -369,13 +369,15 @@ def build_lyrics(item):
|
|||||||
valign = u'vertical-align:top;'
|
valign = u'vertical-align:top;'
|
||||||
lyrics = u'%s %s' % (align, valign)
|
lyrics = u'%s %s' % (align, valign)
|
||||||
if theme.display_outline:
|
if theme.display_outline:
|
||||||
|
lyricscommon += u' letter-spacing: 1px;'
|
||||||
outline = u'-webkit-text-stroke: %sem %s; ' % \
|
outline = u'-webkit-text-stroke: %sem %s; ' % \
|
||||||
(float(theme.display_outline_size) / 16,
|
(float(theme.display_outline_size) / 16,
|
||||||
theme.display_outline_color)
|
theme.display_outline_color)
|
||||||
if theme.display_shadow:
|
if theme.display_shadow:
|
||||||
shadow = u'-webkit-text-stroke: %sem %s; ' % \
|
shadow = u'-webkit-text-stroke: %sem %s; ' \
|
||||||
|
u'-webkit-text-fill-color: %s; '% \
|
||||||
(float(theme.display_outline_size) / 16,
|
(float(theme.display_outline_size) / 16,
|
||||||
theme.display_shadow_color)
|
theme.display_shadow_color, theme.display_shadow_color)
|
||||||
else:
|
else:
|
||||||
if theme.display_shadow:
|
if theme.display_shadow:
|
||||||
shadow = u'color: %s;' % (theme.display_shadow_color)
|
shadow = u'color: %s;' % (theme.display_shadow_color)
|
||||||
|
Loading…
Reference in New Issue
Block a user