forked from openlp/openlp
Display fixes
This commit is contained in:
parent
dc184fdd2e
commit
550654bb2c
@ -118,9 +118,6 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeDialog):
|
|||||||
self.setAlignmentTabValues()
|
self.setAlignmentTabValues()
|
||||||
self.setPositionTabValues()
|
self.setPositionTabValues()
|
||||||
self.setPreviewTabValues()
|
self.setPreviewTabValues()
|
||||||
# Set up field states
|
|
||||||
self.onOutlineCheckCheckBoxChanged(self.theme.font_main_outline)
|
|
||||||
self.onShadowCheckCheckBoxChanged(self.theme.font_main_shadow)
|
|
||||||
|
|
||||||
def registerFields(self):
|
def registerFields(self):
|
||||||
"""
|
"""
|
||||||
@ -195,15 +192,23 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeDialog):
|
|||||||
"""
|
"""
|
||||||
Change state as Outline check box changed
|
Change state as Outline check box changed
|
||||||
"""
|
"""
|
||||||
self.outlineColorPushButton.setEnabled(state)
|
if state == QtCore.Qt.Checked:
|
||||||
self.outlineSizeSpinBox.setEnabled(state)
|
self.theme.font_main_outline = True
|
||||||
|
else:
|
||||||
|
self.theme.font_main_outline = False
|
||||||
|
self.outlineColorPushButton.setEnabled(self.theme.font_main_outline)
|
||||||
|
self.outlineSizeSpinBox.setEnabled(self.theme.font_main_outline)
|
||||||
|
|
||||||
def onShadowCheckCheckBoxChanged(self, state):
|
def onShadowCheckCheckBoxChanged(self, state):
|
||||||
"""
|
"""
|
||||||
Change state as Shadow check box changed
|
Change state as Shadow check box changed
|
||||||
"""
|
"""
|
||||||
self.shadowColorPushButton.setEnabled(state)
|
if state == QtCore.Qt.Checked:
|
||||||
self.shadowSizeSpinBox.setEnabled(state)
|
self.theme.font_main_shadow = True
|
||||||
|
else:
|
||||||
|
self.theme.font_main_shadow = False
|
||||||
|
self.shadowColorPushButton.setEnabled(self.theme.font_main_shadow)
|
||||||
|
self.shadowSizeSpinBox.setEnabled(self.theme.font_main_shadow)
|
||||||
|
|
||||||
def onMainDefaultPositionCheckBox(self, value):
|
def onMainDefaultPositionCheckBox(self, value):
|
||||||
"""
|
"""
|
||||||
@ -351,6 +356,19 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeDialog):
|
|||||||
QtCore.QVariant(self.theme.font_main_bold))
|
QtCore.QVariant(self.theme.font_main_bold))
|
||||||
self.setField(u'italicsCheckBox', \
|
self.setField(u'italicsCheckBox', \
|
||||||
QtCore.QVariant(self.theme.font_main_italics))
|
QtCore.QVariant(self.theme.font_main_italics))
|
||||||
|
# Set up field states
|
||||||
|
if self.theme.font_main_outline:
|
||||||
|
self.setField(u'outlineCheckBox', QtCore.QVariant(False))
|
||||||
|
else:
|
||||||
|
self.setField(u'outlineCheckBox', QtCore.QVariant(True))
|
||||||
|
self.outlineColorPushButton.setEnabled(self.theme.font_main_outline)
|
||||||
|
self.outlineSizeSpinBox.setEnabled(self.theme.font_main_outline)
|
||||||
|
if self.theme.font_main_shadow:
|
||||||
|
self.setField(u'shadowCheckBox', QtCore.QVariant(False))
|
||||||
|
else:
|
||||||
|
self.setField(u'shadowCheckBox', QtCore.QVariant(True))
|
||||||
|
self.shadowColorPushButton.setEnabled(self.theme.font_main_shadow)
|
||||||
|
self.shadowSizeSpinBox.setEnabled(self.theme.font_main_shadow)
|
||||||
|
|
||||||
def setFooterAreaTabValues(self):
|
def setFooterAreaTabValues(self):
|
||||||
"""
|
"""
|
||||||
@ -409,6 +427,8 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeDialog):
|
|||||||
self.setField(u'name', QtCore.QVariant(self.theme.theme_name))
|
self.setField(u'name', QtCore.QVariant(self.theme.theme_name))
|
||||||
if len(self.theme.theme_name) > 1:
|
if len(self.theme.theme_name) > 1:
|
||||||
self.themeNameEdit.setEnabled(False)
|
self.themeNameEdit.setEnabled(False)
|
||||||
|
else:
|
||||||
|
self.themeNameEdit.setEnabled(True)
|
||||||
|
|
||||||
def onBackgroundComboBox(self, index):
|
def onBackgroundComboBox(self, index):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user