forked from openlp/openlp
Fix PEBKAC
This commit is contained in:
parent
a4f0df76cc
commit
754da4c28e
@ -334,7 +334,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
|
|
||||||
def onFontFooterColorPushButtonClicked(self):
|
def onFontFooterColorPushButtonClicked(self):
|
||||||
new_color = QtGui.QColorDialog.getColor(
|
new_color = QtGui.QColorDialog.getColor(
|
||||||
QtGui.QColor(self.theme.background_color), self)
|
QtGui.QColor(self.theme.font_footer_color), self)
|
||||||
if new_color.isValid():
|
if new_color.isValid():
|
||||||
self.theme.font_footer_color = new_color.name()
|
self.theme.font_footer_color = new_color.name()
|
||||||
self.FontFooterColorPushButton.setStyleSheet(
|
self.FontFooterColorPushButton.setStyleSheet(
|
||||||
@ -442,7 +442,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
unicode(self.theme.background_color))
|
unicode(self.theme.background_color))
|
||||||
else:
|
else:
|
||||||
new_color = QtGui.QColorDialog.getColor(
|
new_color = QtGui.QColorDialog.getColor(
|
||||||
QtGui.QColor(self.theme.background_color), self)
|
QtGui.QColor(self.theme.background_startColor), self)
|
||||||
if new_color.isValid():
|
if new_color.isValid():
|
||||||
self.theme.background_startColor = new_color.name()
|
self.theme.background_startColor = new_color.name()
|
||||||
self.Color1PushButton.setStyleSheet(u'background-color: %s' %
|
self.Color1PushButton.setStyleSheet(u'background-color: %s' %
|
||||||
@ -451,7 +451,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
|
|
||||||
def onColor2PushButtonClicked(self):
|
def onColor2PushButtonClicked(self):
|
||||||
new_color = QtGui.QColorDialog.getColor(
|
new_color = QtGui.QColorDialog.getColor(
|
||||||
QtGui.QColor(self.theme.background_color), self)
|
QtGui.QColor(self.theme.background_endColor), self)
|
||||||
if new_color.isValid():
|
if new_color.isValid():
|
||||||
self.theme.background_endColor = new_color.name()
|
self.theme.background_endColor = new_color.name()
|
||||||
self.Color2PushButton.setStyleSheet(u'background-color: %s' %
|
self.Color2PushButton.setStyleSheet(u'background-color: %s' %
|
||||||
@ -481,7 +481,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
|
|
||||||
def onOutlineColorPushButtonClicked(self):
|
def onOutlineColorPushButtonClicked(self):
|
||||||
new_color = QtGui.QColorDialog.getColor(
|
new_color = QtGui.QColorDialog.getColor(
|
||||||
QtGui.QColor(self.theme.background_color), self)
|
QtGui.QColor(self.theme.display_outline_color), self)
|
||||||
if new_color.isValid():
|
if new_color.isValid():
|
||||||
self.theme.display_outline_color = new_color.name()
|
self.theme.display_outline_color = new_color.name()
|
||||||
self.OutlineColorPushButton.setStyleSheet(u'background-color: %s' %
|
self.OutlineColorPushButton.setStyleSheet(u'background-color: %s' %
|
||||||
@ -506,7 +506,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
|
|
||||||
def onShadowColorPushButtonClicked(self):
|
def onShadowColorPushButtonClicked(self):
|
||||||
new_color = QtGui.QColorDialog.getColor(
|
new_color = QtGui.QColorDialog.getColor(
|
||||||
QtGui.QColor(self.theme.background_color), self)
|
QtGui.QColor(self.theme.display_shadow_color), self)
|
||||||
if new_color.isValid():
|
if new_color.isValid():
|
||||||
self.theme.display_shadow_color = new_color.name()
|
self.theme.display_shadow_color = new_color.name()
|
||||||
self.ShadowColorPushButton.setStyleSheet(u'background-color: %s' %
|
self.ShadowColorPushButton.setStyleSheet(u'background-color: %s' %
|
||||||
|
@ -215,7 +215,7 @@ class AlertsTab(SettingsTab):
|
|||||||
|
|
||||||
def onBackgroundColorButtonClicked(self):
|
def onBackgroundColorButtonClicked(self):
|
||||||
new_color = QtGui.QColorDialog.getColor(
|
new_color = QtGui.QColorDialog.getColor(
|
||||||
QtGui.QColor(self.theme.background_color), self)
|
QtGui.QColor(self.bg_color), self)
|
||||||
if new_color.isValid():
|
if new_color.isValid():
|
||||||
self.bg_color = new_color.name()
|
self.bg_color = new_color.name()
|
||||||
self.BackgroundColorButton.setStyleSheet(
|
self.BackgroundColorButton.setStyleSheet(
|
||||||
@ -230,7 +230,7 @@ class AlertsTab(SettingsTab):
|
|||||||
|
|
||||||
def onFontColorButtonClicked(self):
|
def onFontColorButtonClicked(self):
|
||||||
new_color = QtGui.QColorDialog.getColor(
|
new_color = QtGui.QColorDialog.getColor(
|
||||||
QtGui.QColor(self.theme.background_color), self)
|
QtGui.QColor(self.font_color), self)
|
||||||
if new_color.isValid():
|
if new_color.isValid():
|
||||||
self.font_color = new_color.name()
|
self.font_color = new_color.name()
|
||||||
self.FontColorButton.setStyleSheet(
|
self.FontColorButton.setStyleSheet(
|
||||||
|
Loading…
Reference in New Issue
Block a user