forked from openlp/openlp
fix color
This commit is contained in:
parent
cd011842a0
commit
55f34aee03
@ -81,7 +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\''},
|
'inactive': {'icon': 'fa.child', 'attr': 'lightGray'},
|
||||||
'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'},
|
||||||
@ -128,9 +128,13 @@ class UiIcons(object):
|
|||||||
icon = icon_list[key]['icon']
|
icon = icon_list[key]['icon']
|
||||||
try:
|
try:
|
||||||
attr = icon_list[key]['attr']
|
attr = icon_list[key]['attr']
|
||||||
setattr(self, key, qta.icon('fa.plus-circle', attr))
|
setattr(self, key, qta.icon(icon, color=attr))
|
||||||
except:
|
a = 1
|
||||||
|
except KeyError:
|
||||||
setattr(self, key, qta.icon(icon))
|
setattr(self, key, qta.icon(icon))
|
||||||
|
except Exception:
|
||||||
|
import sys
|
||||||
|
print("Unexpected error:", sys.exc_info())
|
||||||
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