forked from openlp/openlp
head
This commit is contained in:
commit
a925033a73
@ -201,6 +201,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
#self.theme.background_mode
|
#self.theme.background_mode
|
||||||
self.theme.background_startColor = theme.background_startColor.strip()
|
self.theme.background_startColor = theme.background_startColor.strip()
|
||||||
#self.theme.background_type
|
#self.theme.background_type
|
||||||
|
if theme.display_display:
|
||||||
self.theme.display_display = theme.display_display.strip()
|
self.theme.display_display = theme.display_display.strip()
|
||||||
self.theme.display_horizontalAlign = \
|
self.theme.display_horizontalAlign = \
|
||||||
theme.display_horizontalAlign.strip()
|
theme.display_horizontalAlign.strip()
|
||||||
@ -277,7 +278,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
self.previewTheme(self.theme)
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontMainDefaultCheckBoxChanged(self, value):
|
def onFontMainDefaultCheckBoxChanged(self, value):
|
||||||
if value == QtCore.Qt.Checked: # checked
|
if value == 2: # checked
|
||||||
self.theme.font_main_override = False
|
self.theme.font_main_override = False
|
||||||
else:
|
else:
|
||||||
self.theme.font_main_override = True
|
self.theme.font_main_override = True
|
||||||
@ -356,7 +357,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
self.previewTheme(self.theme)
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onFontFooterDefaultCheckBoxChanged(self, value):
|
def onFontFooterDefaultCheckBoxChanged(self, value):
|
||||||
if value == QtCore.Qt.Checked: # checked
|
if value == 2: # checked
|
||||||
self.theme.font_footer_override = False
|
self.theme.font_footer_override = False
|
||||||
else:
|
else:
|
||||||
self.theme.font_footer_override = True
|
self.theme.font_footer_override = True
|
||||||
@ -466,7 +467,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
#Other Tab
|
#Other Tab
|
||||||
#
|
#
|
||||||
def onOutlineCheckBoxChanged(self, value):
|
def onOutlineCheckBoxChanged(self, value):
|
||||||
if value == QtCore.Qt.Checked: # checked
|
if value == 2: # checked
|
||||||
self.theme.display_outline = True
|
self.theme.display_outline = True
|
||||||
else:
|
else:
|
||||||
self.theme.display_outline = False
|
self.theme.display_outline = False
|
||||||
@ -481,7 +482,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
self.previewTheme(self.theme)
|
self.previewTheme(self.theme)
|
||||||
|
|
||||||
def onShadowCheckBoxChanged(self, value):
|
def onShadowCheckBoxChanged(self, value):
|
||||||
if value == QtCore.Qt.Checked: # checked
|
if value == 2: # checked
|
||||||
self.theme.display_shadow = True
|
self.theme.display_shadow = True
|
||||||
else:
|
else:
|
||||||
self.theme.display_shadow = False
|
self.theme.display_shadow = False
|
||||||
|
@ -139,9 +139,8 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
def onEditTheme(self):
|
def onEditTheme(self):
|
||||||
item = self.ThemeListWidget.currentItem()
|
item = self.ThemeListWidget.currentItem()
|
||||||
if item is not None:
|
if item is not None:
|
||||||
self.amendThemeForm.setTheme(self.getThemeData(
|
self.amendThemeForm.loadTheme(
|
||||||
item.data(QtCore.Qt.UserRole).toString()))
|
unicode(item.data(QtCore.Qt.UserRole).toString()))
|
||||||
self.amendThemeForm.loadTheme()
|
|
||||||
self.amendThemeForm.exec_()
|
self.amendThemeForm.exec_()
|
||||||
|
|
||||||
def onDeleteTheme(self):
|
def onDeleteTheme(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user