forked from openlp/openlp
more bits
This commit is contained in:
parent
8ab45c342e
commit
cd011842a0
@ -54,6 +54,7 @@ class UiIcons(object):
|
|||||||
color_disabled=palette.color(QtGui.QPalette.Disabled,
|
color_disabled=palette.color(QtGui.QPalette.Disabled,
|
||||||
QtGui.QPalette.ButtonText))
|
QtGui.QPalette.ButtonText))
|
||||||
icon_list = {
|
icon_list = {
|
||||||
|
'active': {'icon': 'fa.child'},
|
||||||
'add': {'icon': 'fa.plus-circle'},
|
'add': {'icon': 'fa.plus-circle'},
|
||||||
'alert': {'icon': 'fa.exclamation-triangle'},
|
'alert': {'icon': 'fa.exclamation-triangle'},
|
||||||
'arrow_down': {'icon': 'fa.arrow-down'},
|
'arrow_down': {'icon': 'fa.arrow-down'},
|
||||||
@ -65,6 +66,7 @@ class UiIcons(object):
|
|||||||
'back': {'icon': 'fa.step-backward'},
|
'back': {'icon': 'fa.step-backward'},
|
||||||
'bible': {'icon': 'fa.book'},
|
'bible': {'icon': 'fa.book'},
|
||||||
'blank': {'icon': 'fa.times-circle'},
|
'blank': {'icon': 'fa.times-circle'},
|
||||||
|
'book': {'icon': 'fa.book'},
|
||||||
'bottom': {'icon': 'fa.angle-double-down'},
|
'bottom': {'icon': 'fa.angle-double-down'},
|
||||||
'clock': {'icon': 'fa.clock-o'},
|
'clock': {'icon': 'fa.clock-o'},
|
||||||
'clone': {'icon': 'fa.clone'},
|
'clone': {'icon': 'fa.clone'},
|
||||||
@ -79,6 +81,7 @@ class UiIcons(object):
|
|||||||
'email': {'icon': 'fa.envelope'},
|
'email': {'icon': 'fa.envelope'},
|
||||||
'exit': {'icon': 'fa.sign-out'},
|
'exit': {'icon': 'fa.sign-out'},
|
||||||
'group': {'icon': 'fa.object-group'},
|
'group': {'icon': 'fa.object-group'},
|
||||||
|
'inactive': {'icon': 'fa.child', 'attr': 'color=\'red\''},
|
||||||
'info': {'icon': 'fa.info'},
|
'info': {'icon': 'fa.info'},
|
||||||
'live': {'icon': 'fa.desktop'},
|
'live': {'icon': 'fa.desktop'},
|
||||||
'manual': {'icon': 'fa.graduation-cap'},
|
'manual': {'icon': 'fa.graduation-cap'},
|
||||||
|
@ -253,7 +253,7 @@ class Ui_ServiceManager(object):
|
|||||||
self.time_action = create_widget_action(self.menu, text=translate('OpenLP.ServiceManager', '&Start Time'),
|
self.time_action = create_widget_action(self.menu, text=translate('OpenLP.ServiceManager', '&Start Time'),
|
||||||
icon=':/media/media_time.png', triggers=self.on_start_time_form)
|
icon=':/media/media_time.png', triggers=self.on_start_time_form)
|
||||||
self.auto_start_action = create_widget_action(self.menu, text='',
|
self.auto_start_action = create_widget_action(self.menu, text='',
|
||||||
icon=':/media/auto-start_active.png',
|
icon=UiIcons().active,
|
||||||
triggers=self.on_auto_start)
|
triggers=self.on_auto_start)
|
||||||
# Add already existing delete action to the menu.
|
# Add already existing delete action to the menu.
|
||||||
self.menu.addAction(self.delete_action)
|
self.menu.addAction(self.delete_action)
|
||||||
@ -315,8 +315,6 @@ class ServiceManager(QtWidgets.QWidget, RegistryBase, Ui_ServiceManager, LogMixi
|
|||||||
Sets up the service manager, toolbars, list view, et al.
|
Sets up the service manager, toolbars, list view, et al.
|
||||||
"""
|
"""
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.active = build_icon(':/media/auto-start_active.png')
|
|
||||||
self.inactive = build_icon(':/media/auto-start_inactive.png')
|
|
||||||
self.service_items = []
|
self.service_items = []
|
||||||
self.suffixes = []
|
self.suffixes = []
|
||||||
self.drop_position = -1
|
self.drop_position = -1
|
||||||
@ -799,11 +797,12 @@ class ServiceManager(QtWidgets.QWidget, RegistryBase, Ui_ServiceManager, LogMixi
|
|||||||
self.time_action.setVisible(True)
|
self.time_action.setVisible(True)
|
||||||
if service_item['service_item'].is_capable(ItemCapabilities.CanAutoStartForLive):
|
if service_item['service_item'].is_capable(ItemCapabilities.CanAutoStartForLive):
|
||||||
self.auto_start_action.setVisible(True)
|
self.auto_start_action.setVisible(True)
|
||||||
self.auto_start_action.setIcon(self.inactive)
|
|
||||||
self.auto_start_action.setText(translate('OpenLP.ServiceManager', '&Auto Start - inactive'))
|
|
||||||
if service_item['service_item'].will_auto_start:
|
if service_item['service_item'].will_auto_start:
|
||||||
self.auto_start_action.setText(translate('OpenLP.ServiceManager', '&Auto Start - active'))
|
self.auto_start_action.setText(translate('OpenLP.ServiceManager', '&Auto Start - active'))
|
||||||
self.auto_start_action.setIcon(self.active)
|
self.auto_start_action.setIcon(UiIcons().active)
|
||||||
|
else:
|
||||||
|
self.auto_start_action.setIcon(UiIcons().inactive)
|
||||||
|
self.auto_start_action.setText(translate('OpenLP.ServiceManager', '&Auto Start - inactive'))
|
||||||
if service_item['service_item'].is_text():
|
if service_item['service_item'].is_text():
|
||||||
for plugin in self.plugin_manager.plugins:
|
for plugin in self.plugin_manager.plugins:
|
||||||
if plugin.name == 'custom' and plugin.status == PluginStatus.Active:
|
if plugin.name == 'custom' and plugin.status == PluginStatus.Active:
|
||||||
|
@ -52,7 +52,7 @@ class Ui_SongMaintenanceDialog(object):
|
|||||||
self.topics_list_item = QtWidgets.QListWidgetItem(self.type_list_widget)
|
self.topics_list_item = QtWidgets.QListWidgetItem(self.type_list_widget)
|
||||||
self.topics_list_item.setIcon(build_icon(':/songs/topic_maintenance.png'))
|
self.topics_list_item.setIcon(build_icon(':/songs/topic_maintenance.png'))
|
||||||
self.books_list_item = QtWidgets.QListWidgetItem(self.type_list_widget)
|
self.books_list_item = QtWidgets.QListWidgetItem(self.type_list_widget)
|
||||||
self.books_list_item.setIcon(build_icon(':/songs/book_maintenance.png'))
|
self.books_list_item.setIcon(UiIcons().book)
|
||||||
self.dialog_layout.addWidget(self.type_list_widget, 0, 0)
|
self.dialog_layout.addWidget(self.type_list_widget, 0, 0)
|
||||||
self.stacked_layout = QtWidgets.QStackedLayout()
|
self.stacked_layout = QtWidgets.QStackedLayout()
|
||||||
self.stacked_layout.setObjectName('stacked_layout')
|
self.stacked_layout.setObjectName('stacked_layout')
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 815 B |
Binary file not shown.
Before Width: | Height: | Size: 767 B |
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB |
@ -5,7 +5,6 @@
|
|||||||
<file>song_search_lyrics.png</file>
|
<file>song_search_lyrics.png</file>
|
||||||
<file>song_search_title.png</file>
|
<file>song_search_title.png</file>
|
||||||
<file>song_search_topic.png</file>
|
<file>song_search_topic.png</file>
|
||||||
<file>book_maintenance.png</file>
|
|
||||||
<file>topic_maintenance.png</file>
|
<file>topic_maintenance.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="images">
|
<qresource prefix="images">
|
||||||
@ -56,8 +55,6 @@
|
|||||||
<qresource prefix="media">
|
<qresource prefix="media">
|
||||||
<file>media_time.png</file>
|
<file>media_time.png</file>
|
||||||
<file>slidecontroller_multimedia.png</file>
|
<file>slidecontroller_multimedia.png</file>
|
||||||
<file>auto-start_active.png</file>
|
|
||||||
<file>auto-start_inactive.png</file>
|
|
||||||
<file>multimedia-player.png</file>
|
<file>multimedia-player.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="messagebox">
|
<qresource prefix="messagebox">
|
||||||
|
Loading…
Reference in New Issue
Block a user