Skip to content

Commit

Permalink
Tweak Python icons
Browse files Browse the repository at this point in the history
This commit:

 - adds PyPI icon to related files (`requirements.in`, `requirements.txt`)
 - adds a modified Python icon to `py.typed` files
 - adds an icon separate from Python to `.python-version` files
  • Loading branch information
mataha committed Dec 29, 2023
1 parent d730597 commit 6270a9b
Show file tree
Hide file tree
Showing 31 changed files with 98 additions and 8 deletions.
4 changes: 4 additions & 0 deletions PACKAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ This file contains a list of possible packages you may need to install to see th

- [REG](https://packagecontrol.io/packages/REG)

## Requirements

- [requirementstxt](https://packagecontrol.io/packages/requirementstxt)

## Riot

- [Riot Syntax](https://packagecontrol.io/packages/Riot%20Syntax)
Expand Down
43 changes: 36 additions & 7 deletions icons/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -2300,6 +2300,19 @@
}
]
},
"file_type_pip": {
"color": "sky",
"syntaxes": [
{
"extensions": [
"requirements.in",
"requirements.txt"
],
"name": "Plain Text (Requirements)",
"scope": "source.requirementstxt"
}
]
},
"file_type_playlist": {
"color": "blue",
"syntaxes": [
Expand Down Expand Up @@ -2577,6 +2590,28 @@
]
},
"file_type_python": {
"color": "yellow",
"syntaxes": [
{
"name": "Python",
"scope": "source.python"
}
]
},
"file_type_python_typed": {
"aliases": [
{
"base": "source.python",
"extensions": [
"py.typed"
],
"name": "Python (PEP 561)",
"scope": "source.python.typed"
}
],
"color": "blue"
},
"file_type_python_version": {
"aliases": [
{
"extensions": [
Expand All @@ -2586,13 +2621,7 @@
"scope": "text.plain.python"
}
],
"color": "yellow",
"syntaxes": [
{
"name": "Python",
"scope": "source.python"
}
]
"color": "yellow"
},
"file_type_qt": {
"aliases": [
Expand Down
Binary file added icons/multi/file_type_pip.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/multi/file_type_pip@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/multi/file_type_pip@3x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/multi/file_type_python_typed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/multi/file_type_python_typed@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/multi/file_type_python_typed@3x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/multi/file_type_python_version.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/multi/file_type_python_version@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/multi/file_type_python_version@3x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/single/file_type_pip.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/single/file_type_pip@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/single/file_type_pip@3x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/single/file_type_python_typed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/single/file_type_python_typed@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/single/file_type_python_typed@3x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/single/file_type_python_version.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/single/file_type_python_version@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/single/file_type_python_version@3x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions icons/svg/file_type_pip.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions icons/svg/file_type_python_typed.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions icons/svg/file_type_python_version.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions preferences/file_type_pip.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>scope</key>
<string>source.requirementstxt</string>
<key>settings</key>
<dict>
<key>icon</key>
<string>file_type_pip</string>
</dict>
</dict>
</plist>
12 changes: 12 additions & 0 deletions preferences/file_type_pypi.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>scope</key>
<string>text.plain.pypi</string>
<key>settings</key>
<dict>
<key>icon</key>
<string>file_type_pypi</string>
</dict>
</dict>
</plist>
2 changes: 1 addition & 1 deletion preferences/file_type_python.tmPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plist version="1.0">
<dict>
<key>scope</key>
<string>source.python, text.plain.python</string>
<string>source.python</string>
<key>settings</key>
<dict>
<key>icon</key>
Expand Down
12 changes: 12 additions & 0 deletions preferences/file_type_python_typed.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>scope</key>
<string>source.python.typed</string>
<key>settings</key>
<dict>
<key>icon</key>
<string>file_type_python_typed</string>
</dict>
</dict>
</plist>
12 changes: 12 additions & 0 deletions preferences/file_type_python_version.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>scope</key>
<string>text.plain.python</string>
<key>settings</key>
<dict>
<key>icon</key>
<string>file_type_python_version</string>
</dict>
</dict>
</plist>
Empty file added tests/py.typed
Empty file.
Empty file added tests/requirements.in
Empty file.
Empty file added tests/requirements.txt
Empty file.

0 comments on commit 6270a9b

Please sign in to comment.