From 754da4c28ecf497c4817c7ee58c631ab9243bf02 Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Mon, 14 Jun 2010 14:43:04 +0100 Subject: [PATCH] Fix PEBKAC --- openlp/core/ui/amendthemeform.py | 10 +++++----- openlp/plugins/alerts/lib/alertstab.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/openlp/core/ui/amendthemeform.py b/openlp/core/ui/amendthemeform.py index 00e6a5d16..0891f128a 100644 --- a/openlp/core/ui/amendthemeform.py +++ b/openlp/core/ui/amendthemeform.py @@ -334,7 +334,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): def onFontFooterColorPushButtonClicked(self): new_color = QtGui.QColorDialog.getColor( - QtGui.QColor(self.theme.background_color), self) + QtGui.QColor(self.theme.font_footer_color), self) if new_color.isValid(): self.theme.font_footer_color = new_color.name() self.FontFooterColorPushButton.setStyleSheet( @@ -442,7 +442,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): unicode(self.theme.background_color)) else: new_color = QtGui.QColorDialog.getColor( - QtGui.QColor(self.theme.background_color), self) + QtGui.QColor(self.theme.background_startColor), self) if new_color.isValid(): self.theme.background_startColor = new_color.name() self.Color1PushButton.setStyleSheet(u'background-color: %s' % @@ -451,7 +451,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): def onColor2PushButtonClicked(self): new_color = QtGui.QColorDialog.getColor( - QtGui.QColor(self.theme.background_color), self) + QtGui.QColor(self.theme.background_endColor), self) if new_color.isValid(): self.theme.background_endColor = new_color.name() self.Color2PushButton.setStyleSheet(u'background-color: %s' % @@ -481,7 +481,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): def onOutlineColorPushButtonClicked(self): new_color = QtGui.QColorDialog.getColor( - QtGui.QColor(self.theme.background_color), self) + QtGui.QColor(self.theme.display_outline_color), self) if new_color.isValid(): self.theme.display_outline_color = new_color.name() self.OutlineColorPushButton.setStyleSheet(u'background-color: %s' % @@ -506,7 +506,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): def onShadowColorPushButtonClicked(self): new_color = QtGui.QColorDialog.getColor( - QtGui.QColor(self.theme.background_color), self) + QtGui.QColor(self.theme.display_shadow_color), self) if new_color.isValid(): self.theme.display_shadow_color = new_color.name() self.ShadowColorPushButton.setStyleSheet(u'background-color: %s' % diff --git a/openlp/plugins/alerts/lib/alertstab.py b/openlp/plugins/alerts/lib/alertstab.py index 43c299070..15f27df6d 100644 --- a/openlp/plugins/alerts/lib/alertstab.py +++ b/openlp/plugins/alerts/lib/alertstab.py @@ -215,7 +215,7 @@ class AlertsTab(SettingsTab): def onBackgroundColorButtonClicked(self): new_color = QtGui.QColorDialog.getColor( - QtGui.QColor(self.theme.background_color), self) + QtGui.QColor(self.bg_color), self) if new_color.isValid(): self.bg_color = new_color.name() self.BackgroundColorButton.setStyleSheet( @@ -230,7 +230,7 @@ class AlertsTab(SettingsTab): def onFontColorButtonClicked(self): new_color = QtGui.QColorDialog.getColor( - QtGui.QColor(self.theme.background_color), self) + QtGui.QColor(self.font_color), self) if new_color.isValid(): self.font_color = new_color.name() self.FontColorButton.setStyleSheet(