forked from openlp/openlp
Fixed edit theme to preview render bug
This commit is contained in:
parent
2181655239
commit
2c1c202e5b
@ -65,6 +65,7 @@ class RenderManager(object):
|
|||||||
self.service_theme = u''
|
self.service_theme = u''
|
||||||
self.global_style = u''
|
self.global_style = u''
|
||||||
self.override_background = None
|
self.override_background = None
|
||||||
|
self.themedata = None
|
||||||
self.save_bg_frame = None
|
self.save_bg_frame = None
|
||||||
self.override_background_changed = False
|
self.override_background_changed = False
|
||||||
|
|
||||||
@ -130,7 +131,7 @@ class RenderManager(object):
|
|||||||
self.theme = self.service_theme
|
self.theme = self.service_theme
|
||||||
else:
|
else:
|
||||||
self.theme = self.global_theme
|
self.theme = self.global_theme
|
||||||
if self.theme != self.renderer.theme_name:
|
if self.theme != self.renderer.theme_name or self.themedata is None:
|
||||||
log.debug(u'theme is now %s', self.theme)
|
log.debug(u'theme is now %s', self.theme)
|
||||||
self.themedata = self.theme_manager.getThemeData(self.theme)
|
self.themedata = self.theme_manager.getThemeData(self.theme)
|
||||||
self.calculate_default(
|
self.calculate_default(
|
||||||
|
@ -386,7 +386,7 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
|
|
||||||
newtheme.add_font(unicode(theme.FontName),
|
newtheme.add_font(unicode(theme.FontName),
|
||||||
unicode(theme.FontColor.name()),
|
unicode(theme.FontColor.name()),
|
||||||
unicode(theme.FontProportion * 2), u'False')
|
unicode(theme.FontProportion * 3), u'False')
|
||||||
newtheme.add_font(unicode(theme.FontName),
|
newtheme.add_font(unicode(theme.FontName),
|
||||||
unicode(theme.FontColor.name()),
|
unicode(theme.FontColor.name()),
|
||||||
unicode(12), u'False', u'footer')
|
unicode(12), u'False', u'footer')
|
||||||
|
Loading…
Reference in New Issue
Block a user