forked from openlp/openlp
Ffix up icons
This commit is contained in:
parent
0e980b6a98
commit
11276f6bba
@ -107,6 +107,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
Sets up the service manager, toolbars, list view, et al.
|
Sets up the service manager, toolbars, list view, et al.
|
||||||
"""
|
"""
|
||||||
QtGui.QWidget.__init__(self, parent)
|
QtGui.QWidget.__init__(self, parent)
|
||||||
|
self.active = build_icon(QtGui.QImage(u':/media/auto-start_active.png'))
|
||||||
|
self.inactive = build_icon(QtGui.QImage(u':/media/auto-start_inactive.png'))
|
||||||
self.mainwindow = mainwindow
|
self.mainwindow = mainwindow
|
||||||
self.serviceItems = []
|
self.serviceItems = []
|
||||||
self.suffixes = []
|
self.suffixes = []
|
||||||
@ -309,7 +311,7 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
icon=u':/media/media_time.png', triggers=self.onStartTimeForm)
|
icon=u':/media/media_time.png', triggers=self.onStartTimeForm)
|
||||||
self.autoStartAction = create_widget_action(self.menu,
|
self.autoStartAction = create_widget_action(self.menu,
|
||||||
text=u'',
|
text=u'',
|
||||||
icon=u':/media/media_time.png', triggers=self.onAutoStart)
|
icon=u':/media/auto-start_active.png', triggers=self.onAutoStart)
|
||||||
# Add already existing delete action to the menu.
|
# Add already existing delete action to the menu.
|
||||||
self.menu.addAction(self.serviceManagerList.delete)
|
self.menu.addAction(self.serviceManagerList.delete)
|
||||||
self.menu.addSeparator()
|
self.menu.addSeparator()
|
||||||
@ -881,11 +883,11 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
if serviceItem[u'service_item']\
|
if serviceItem[u'service_item']\
|
||||||
.is_capable(ItemCapabilities.CanAutoStartForLive):
|
.is_capable(ItemCapabilities.CanAutoStartForLive):
|
||||||
self.autoStartAction.setVisible(True)
|
self.autoStartAction.setVisible(True)
|
||||||
self.autoStartAction.setText(translate('OpenLP.ServiceManager',
|
self.autoStartAction.setIcon(self.inactive)
|
||||||
'&Auto Start - inactive'))
|
self.autoStartAction.setText(translate('OpenLP.ServiceManager','&Auto Start - inactive'))
|
||||||
if serviceItem[u'service_item'].will_auto_start:
|
if serviceItem[u'service_item'].will_auto_start:
|
||||||
self.autoStartAction.setText(translate('OpenLP.ServiceManager',
|
self.autoStartAction.setText(translate('OpenLP.ServiceManager', '&Auto Start - active'))
|
||||||
'&Auto Start - active'))
|
self.autoStartAction.setIcon(self.active)
|
||||||
self.themeMenu.menuAction().setVisible(False)
|
self.themeMenu.menuAction().setVisible(False)
|
||||||
# Set up the theme menu.
|
# Set up the theme menu.
|
||||||
if serviceItem[u'service_item'].is_text() and \
|
if serviceItem[u'service_item'].is_text() and \
|
||||||
|
Loading…
Reference in New Issue
Block a user