forked from openlp/openlp
Tidy up more code and add color to alerts font
bzr-revno: 361
This commit is contained in:
parent
598509ff60
commit
6ff73a17b8
@ -159,10 +159,13 @@ class AlertsTab(SettingsTab):
|
|||||||
self.PreviewGroupBox.setTitle(translate(u'AlertsTab', u'Preview'))
|
self.PreviewGroupBox.setTitle(translate(u'AlertsTab', u'Preview'))
|
||||||
|
|
||||||
def onBackgroundColourButtonclicked(self):
|
def onBackgroundColourButtonclicked(self):
|
||||||
print "pressed background"
|
old_name = 0
|
||||||
|
colour = QtGui.QColorDialog.getColor(QColor(old_name), self).name()
|
||||||
|
print colour
|
||||||
|
self.BackgroundColourButton.setStyleSheet('background-color: %s' % colour)
|
||||||
|
|
||||||
|
|
||||||
def onFontColourButtonclicked(self):
|
def onFontColourButtonclicked(self):
|
||||||
print "pressed font"
|
|
||||||
old_name = 0
|
old_name = 0
|
||||||
colour = QtGui.QColorDialog.getColor(QColor(old_name), self).name()
|
colour = QtGui.QColorDialog.getColor(QColor(old_name), self).name()
|
||||||
print colour
|
print colour
|
||||||
|
@ -47,8 +47,8 @@ class BiblePlugin(Plugin, PluginUtils):
|
|||||||
self.biblemanager = BibleManager(self.config)
|
self.biblemanager = BibleManager(self.config)
|
||||||
|
|
||||||
def get_settings_tab(self):
|
def get_settings_tab(self):
|
||||||
self.BiblesTab = BiblesTab()
|
self.bibles_tab = BiblesTab()
|
||||||
return self.BiblesTab
|
return self.bibles_tab
|
||||||
|
|
||||||
def get_media_manager_item(self):
|
def get_media_manager_item(self):
|
||||||
# Create the MediaManagerItem object
|
# Create the MediaManagerItem object
|
||||||
|
Loading…
Reference in New Issue
Block a user