Skip to content

Commit

Permalink
Merge pull request #452 from BigRoy/change_no_task_icon
Browse files Browse the repository at this point in the history
Make the "No Task" entry clearly distinct from actual tasks by its icon
  • Loading branch information
davidlatwe authored Sep 19, 2019
2 parents fbd00ad + a13433b commit e41df74
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions avalon/tools/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ def __init__(self):
self._num_assets = 0
self._icons = {
"__default__": qtawesome.icon("fa.male",
color=style.colors.default)
color=style.colors.default),
"__no_task__": qtawesome.icon("fa.exclamation-circle",
color=style.colors.mid)
}

self._get_task_icons()
Expand Down Expand Up @@ -238,10 +240,11 @@ def set_assets(self, asset_ids):
default_icon = self._icons["__default__"]

if not tasks:
no_task_icon = self._icons["__no_task__"]
item = Item({
"name": "No task",
"count": 0,
"icon": default_icon,
"icon": no_task_icon,
"enabled": False,
})

Expand Down

0 comments on commit e41df74

Please sign in to comment.