Skip to content

Commit

Permalink
Add new icons for projects and to dos
Browse files Browse the repository at this point in the history
  • Loading branch information
xilopaint committed Nov 20, 2017
1 parent 4371c0e commit 4e49cd4
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 9 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ To report a bug or request a feature, please [create an issue][4] or [submit a p

## Credits

This workflow relies on [qWorkflow][6] library by Ursan Razvan and [OneUpdater][7] by Vítor Galvão.
This workflow relies on [qWorkflow][6] library by Ursan Razvan and [OneUpdater][7] by Vítor Galvão. The to do icon is created by [Jason Zigrino][8] and released under the [Creative Commons BY-NC-ND 3.0 license][9].

## License

**Things** workflow code is released under the [MIT License][8].
**Things** workflow code is released under the [MIT License][10].

[1]:https://culturedcode.com/things/
[2]:http://www.alfredapp.com/
Expand All @@ -33,4 +33,6 @@ This workflow relies on [qWorkflow][6] library by Ursan Razvan and [OneUpdater][
[5]:https://github.com/xilopaint/alfred-things/pulls
[6]:https://github.com/qlassiqa/qWorkflow
[7]:https://github.com/vitorgalvao/alfred-workflows/tree/master/OneUpdater
[8]:https://opensource.org/licenses/MIT
[8]:https://jasonzigrino.deviantart.com
[9]:https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode
[10]:https://opensource.org/licenses/MIT
Binary file modified Things.alfredworkflow
Binary file not shown.
Binary file modified src/icons/area.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/icons/todo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
<key>modifiers</key>
<integer>262144</integer>
<key>modifiersubtext</key>
<string>Delete To-do</string>
<string>Delete</string>
<key>vitoclose</key>
<false/>
</dict>
Expand Down Expand Up @@ -817,11 +817,11 @@ To report a bug or request a feature, please [create an issue][4] or [submit a p
## Credits
This workflow relies on [qWorkflow][6] library by Ursan Razvan and [OneUpdater][7] by Vítor Galvão.
This workflow relies on [qWorkflow][6] library by Ursan Razvan and [OneUpdater][7] by Vítor Galvão. The to do icon is created by [Jason Zigrino][8] and released under the [Creative Commons BY-NC-ND 3.0 license][9].
## License
**Things** workflow code is released under the [MIT License][8].
**Things** workflow code is released under the [MIT License][10].
[1]:https://culturedcode.com/things/
[2]:http://www.alfredapp.com/
Expand All @@ -830,7 +830,9 @@ This workflow relies on [qWorkflow][6] library by Ursan Razvan and [OneUpdater][
[5]:https://github.com/xilopaint/alfred-things/pulls
[6]:https://github.com/qlassiqa/qWorkflow
[7]:https://github.com/vitorgalvao/alfred-workflows/tree/master/OneUpdater
[8]:https://opensource.org/licenses/MIT</string>
[8]:https://jasonzigrino.deviantart.com
[9]:https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode
[10]:https://opensource.org/licenses/MIT</string>
<key>uidata</key>
<dict>
<key>1943E391-FA03-4E97-80CC-91AA5E85AD64</key>
Expand Down Expand Up @@ -992,7 +994,7 @@ This workflow relies on [qWorkflow][6] library by Ursan Razvan and [OneUpdater][
</dict>
</dict>
<key>version</key>
<string>1.4.1</string>
<string>1.4.2</string>
<key>webaddress</key>
<string>https://github.com/xilopaint/alfred-things</string>
</dict>
Expand Down
9 changes: 8 additions & 1 deletion src/things.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ on showToDos(wf, theList)
end if
end if
end if
add_result of wf with isValid given theUID:"", theArg:toDoName, theTitle:toDoName, theAutocomplete:"", theSubtitle:theSubtitle, theIcon:"icons/todo.png", theType:""

if not exists project named toDoName
set theIcon to "icons/todo.png"
else
set theIcon to "icons/project.png"
end if

add_result of wf with isValid given theUID:"", theArg:toDoName, theTitle:toDoName, theAutocomplete:"", theSubtitle:theSubtitle, theIcon:theIcon, theType:""
end repeat
end tell
return wf's to_xml("")
Expand Down

0 comments on commit 4e49cd4

Please sign in to comment.