forked from openlp/openlp
Fix font names in theme editing
This commit is contained in:
parent
2f03004bcd
commit
e662b785db
@ -481,25 +481,26 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
def paintUi(self, theme):
|
def paintUi(self, theme):
|
||||||
self.stateChanging(theme)
|
self.stateChanging(theme)
|
||||||
self.ThemeNameEdit.setText(self.theme.theme_name)
|
self.ThemeNameEdit.setText(self.theme.theme_name)
|
||||||
|
# Background Tab
|
||||||
if self.theme.background_mode == u'opaque':
|
if self.theme.background_mode == u'opaque':
|
||||||
self.BackgroundComboBox.setCurrentIndex(0)
|
self.BackgroundComboBox.setCurrentIndex(0)
|
||||||
else:
|
else:
|
||||||
self.BackgroundComboBox.setCurrentIndex(1)
|
self.BackgroundComboBox.setCurrentIndex(1)
|
||||||
|
|
||||||
if theme.background_type == u'solid':
|
if theme.background_type == u'solid':
|
||||||
self.BackgroundTypeComboBox.setCurrentIndex(0)
|
self.BackgroundTypeComboBox.setCurrentIndex(0)
|
||||||
elif theme.background_type == u'gradient':
|
elif theme.background_type == u'gradient':
|
||||||
self.BackgroundTypeComboBox.setCurrentIndex(1)
|
self.BackgroundTypeComboBox.setCurrentIndex(1)
|
||||||
else:
|
else:
|
||||||
self.BackgroundTypeComboBox.setCurrentIndex(2)
|
self.BackgroundTypeComboBox.setCurrentIndex(2)
|
||||||
|
|
||||||
if self.theme.background_direction == u'horizontal':
|
if self.theme.background_direction == u'horizontal':
|
||||||
self.GradientComboBox.setCurrentIndex(0)
|
self.GradientComboBox.setCurrentIndex(0)
|
||||||
elif self.theme.background_direction == u'vertical':
|
elif self.theme.background_direction == u'vertical':
|
||||||
self.GradientComboBox.setCurrentIndex(1)
|
self.GradientComboBox.setCurrentIndex(1)
|
||||||
else:
|
else:
|
||||||
self.GradientComboBox.setCurrentIndex(2)
|
self.GradientComboBox.setCurrentIndex(2)
|
||||||
|
# Font Main Tab
|
||||||
|
self.FontMainComboBox.setCurrentFont(
|
||||||
|
QtGui.QFont(self.theme.font_main_name))
|
||||||
self.FontMainSizeSpinBox.setValue(int(self.theme.font_main_proportion))
|
self.FontMainSizeSpinBox.setValue(int(self.theme.font_main_proportion))
|
||||||
if not self.theme.font_main_italics and \
|
if not self.theme.font_main_italics and \
|
||||||
self.theme.font_main_weight == u'Normal':
|
self.theme.font_main_weight == u'Normal':
|
||||||
@ -517,6 +518,9 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
self.FontMainYSpinBox.setValue(int(self.theme.font_main_y))
|
self.FontMainYSpinBox.setValue(int(self.theme.font_main_y))
|
||||||
self.FontMainWidthSpinBox.setValue(int(self.theme.font_main_width))
|
self.FontMainWidthSpinBox.setValue(int(self.theme.font_main_width))
|
||||||
self.FontMainHeightSpinBox.setValue(int(self.theme.font_main_height))
|
self.FontMainHeightSpinBox.setValue(int(self.theme.font_main_height))
|
||||||
|
# Font Footer Tab
|
||||||
|
self.FontFooterComboBox.setCurrentFont(
|
||||||
|
QtGui.QFont(self.theme.font_footer_name))
|
||||||
self.FontFooterSizeSpinBox.setValue(
|
self.FontFooterSizeSpinBox.setValue(
|
||||||
int(self.theme.font_footer_proportion))
|
int(self.theme.font_footer_proportion))
|
||||||
if not self.theme.font_footer_italics and \
|
if not self.theme.font_footer_italics and \
|
||||||
|
Loading…
Reference in New Issue
Block a user