Fixed edit theme to preview render bug

This commit is contained in:
Tim Bentley 2009-10-24 08:22:44 +01:00
parent 2181655239
commit 2c1c202e5b
2 changed files with 3 additions and 2 deletions

View File

@ -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(

View File

@ -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')