forked from openlp/openlp
add attributes
This commit is contained in:
parent
7487721e26
commit
ccafcfe0e5
@ -1,5 +1,5 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: {'icon': utf-8 -*-
|
||||||
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
# vim: {'icon': autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
# OpenLP - Open Source Lyrics Projection #
|
||||||
@ -54,69 +54,74 @@ 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 = {
|
||||||
'add': 'fa.plus-circle',
|
'add': {'icon': 'fa.plus-circle'},
|
||||||
'alert': 'fa.exclamation-triangle',
|
'alert': {'icon': 'fa.exclamation-triangle'},
|
||||||
'arrow_down': 'fa.arrow-down',
|
'arrow_down': {'icon': 'fa.arrow-down'},
|
||||||
'arrow_left': 'fa.arrow-left',
|
'arrow_left': {'icon': 'fa.arrow-left'},
|
||||||
'arrow_right': 'fa.arrow-right',
|
'arrow_right': {'icon': 'fa.arrow-right'},
|
||||||
'arrow_up': 'fa.arrow-up',
|
'arrow_up': {'icon': 'fa.arrow-up'},
|
||||||
'audio': 'fa.file-sound-o',
|
'audio': {'icon': 'fa.file-sound-o'},
|
||||||
'address': 'fa.book',
|
'address': {'icon': 'fa.book'},
|
||||||
'back': 'fa.step-backward',
|
'back': {'icon': 'fa.step-backward'},
|
||||||
'bible': 'fa.book',
|
'bible': {'icon': 'fa.book'},
|
||||||
'blank': 'fa.times-circle',
|
'blank': {'icon': 'fa.times-circle'},
|
||||||
'bottom': 'fa.angle-double-down',
|
'bottom': {'icon': 'fa.angle-double-down'},
|
||||||
'clock': 'fa.clock-o',
|
'clock': {'icon': 'fa.clock-o'},
|
||||||
'clone': 'fa.clone',
|
'clone': {'icon': 'fa.clone'},
|
||||||
'copy': 'fa.copy',
|
'copy': {'icon': 'fa.copy'},
|
||||||
'copyright': 'fa.copyright',
|
'copyright': {'icon': 'fa.copyright'},
|
||||||
'database': 'fa.database',
|
'database': {'icon': 'fa.database'},
|
||||||
'default': 'fa.info-circle',
|
'default': {'icon': 'fa.info-circle'},
|
||||||
'desktop': 'fa.desktop',
|
'desktop': {'icon': 'fa.desktop'},
|
||||||
'delete': 'fa.trash',
|
'delete': {'icon': 'fa.trash'},
|
||||||
'download': 'fa.cloud-download',
|
'download': {'icon': 'fa.cloud-download'},
|
||||||
'edit': 'fa.edit',
|
'edit': {'icon': 'fa.edit'},
|
||||||
'email': 'fa.envelope',
|
'email': {'icon': 'fa.envelope'},
|
||||||
'exit': 'fa.sign-out',
|
'exit': {'icon': 'fa.sign-out'},
|
||||||
'group': 'fa.object-group',
|
'group': {'icon': 'fa.object-group'},
|
||||||
'info': 'fa.info',
|
'info': {'icon': 'fa.info'},
|
||||||
'live': 'fa.desktop',
|
'live': {'icon': 'fa.desktop'},
|
||||||
'manual': 'fa.graduation-cap',
|
'manual': {'icon': 'fa.graduation-cap'},
|
||||||
'minus': 'fa.minus',
|
'minus': {'icon': 'fa.minus'},
|
||||||
'music': 'fa.music',
|
'music': {'icon': 'fa.music'},
|
||||||
'new': 'fa.file',
|
'new': {'icon': 'fa.file'},
|
||||||
'new_group': 'fa.folder',
|
'new_group': {'icon': 'fa.folder'},
|
||||||
'notes': 'fa.sticky-note',
|
'notes': {'icon': 'fa.sticky-note'},
|
||||||
'open': 'fa.folder-open',
|
'open': {'icon': 'fa.folder-open'},
|
||||||
'optical': 'fa.file-video-o',
|
'optical': {'icon': 'fa.file-video-o'},
|
||||||
'pause': 'fa.pause',
|
'pause': {'icon': 'fa.pause'},
|
||||||
'play': 'fa.play',
|
'play': {'icon': 'fa.play'},
|
||||||
'plus': 'fa.plus',
|
'plus': {'icon': 'fa.plus'},
|
||||||
'presentation': 'fa.bar-chart',
|
'presentation': {'icon': 'fa.bar-chart'},
|
||||||
'preview': 'fa.laptop',
|
'preview': {'icon': 'fa.laptop'},
|
||||||
'picture': 'fa.picture-o',
|
'picture': {'icon': 'fa.picture-o'},
|
||||||
'print': 'fa.print',
|
'print': {'icon': 'fa.print'},
|
||||||
'remote': 'fa.rss',
|
'remote': {'icon': 'fa.rss'},
|
||||||
'repeat': 'fa.repeat',
|
'repeat': {'icon': 'fa.repeat'},
|
||||||
'save': 'fa.save',
|
'save': {'icon': 'fa.save'},
|
||||||
'search': 'fa.search',
|
'search': {'icon': 'fa.search'},
|
||||||
'search_minus': 'fa.search-minus',
|
'search_minus': {'icon': 'fa.search-minus'},
|
||||||
'search_plus': 'fa.search-plus',
|
'search_plus': {'icon': 'fa.search-plus'},
|
||||||
'settings': 'fa.cogs',
|
'settings': {'icon': 'fa.cogs'},
|
||||||
'shortcuts': 'fa.wrench',
|
'shortcuts': {'icon': 'fa.wrench'},
|
||||||
'stop': 'fa.stop',
|
'stop': {'icon': 'fa.stop'},
|
||||||
'theme': 'fa.file-image-o',
|
'theme': {'icon': 'fa.file-image-o'},
|
||||||
'top': 'fa.angle-double-up',
|
'top': {'icon': 'fa.angle-double-up'},
|
||||||
'undo': 'fa.undo',
|
'undo': {'icon': 'fa.undo'},
|
||||||
'upload': 'fa.cloud-upload',
|
'upload': {'icon': 'fa.cloud-upload'},
|
||||||
'user': 'fa.user',
|
'user': {'icon': 'fa.user'},
|
||||||
'users': 'fa.users',
|
'users': {'icon': 'fa.users'},
|
||||||
'video': 'fa.file-video-o'
|
'video': {'icon': 'fa.file-video-o'}
|
||||||
}
|
}
|
||||||
|
|
||||||
for key in icon_list:
|
for key in icon_list:
|
||||||
try:
|
try:
|
||||||
setattr(self, key, qta.icon(icon_list[key]))
|
icon = icon_list[key]['icon']
|
||||||
|
try:
|
||||||
|
attr = icon_list[key]['attr']
|
||||||
|
setattr(self, key, qta.icon('fa.plus-circle', attr))
|
||||||
|
except:
|
||||||
|
setattr(self, key, qta.icon(icon))
|
||||||
except:
|
except:
|
||||||
setattr(self, key, qta.icon('fa.plus-circle', color='red'))
|
setattr(self, key, qta.icon('fa.plus-circle', color='red'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user