Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the "No Task" entry clearly distinct from actual tasks by its icon #452

Merged
merged 2 commits into from
Sep 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
BigRoy marked this conversation as resolved.
Show resolved Hide resolved
})

Expand Down