Skip to content

Commit

Permalink
add tons of icons
Browse files Browse the repository at this point in the history
  • Loading branch information
MacHu-GWU committed Apr 8, 2023
1 parent e31d11a commit 021d95e
Show file tree
Hide file tree
Showing 36 changed files with 262 additions and 5 deletions.
2 changes: 1 addition & 1 deletion afwf/_icon.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class IconFileEnum:
lines = content.split("\n")

for p in dir_icons.select_by_ext(".png"):
name = p.basename.split("-")[0]
name = p.basename.rstrip("-96.png").replace("-", "_")
file = p.basename
line = f" {name} = os.path.join(dir_icons, \"{file}\")"
lines.append(line)
Expand Down
40 changes: 36 additions & 4 deletions afwf/icon.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,59 @@ class IconFileEnum:
"""
List of built-in icon files.
"""
dictionary = os.path.join(dir_icons, "dictionary-96.png")
search = os.path.join(dir_icons, "search-96.png")
refresh = os.path.join(dir_icons, "refresh-96.png")
landline = os.path.join(dir_icons, "landline-96.png")
pause = os.path.join(dir_icons, "pause-96.png")
folder = os.path.join(dir_icons, "folder-96.png")
trash = os.path.join(dir_icons, "trash-96.png")
calendar = os.path.join(dir_icons, "calendar-96.png")
start = os.path.join(dir_icons, "start-96.png")
idea = os.path.join(dir_icons, "idea-96.png")
mail = os.path.join(dir_icons, "mail-96.png")
password = os.path.join(dir_icons, "password-96.png")
meeti = os.path.join(dir_icons, "meeting-96.png")
error = os.path.join(dir_icons, "error-96.png")
code = os.path.join(dir_icons, "code-96.png")
microsoft_word = os.path.join(dir_icons, "microsoft-word-96.png")
flask = os.path.join(dir_icons, "flask-96.png")
internet = os.path.join(dir_icons, "internet-96.png")
reset = os.path.join(dir_icons, "reset-96.png")
task = os.path.join(dir_icons, "task-96.png")
microsoft_powerpoint = os.path.join(dir_icons, "microsoft-powerpoint-96.png")
groupchat = os.path.join(dir_icons, "groupchat-96.png")
question = os.path.join(dir_icons, "question-96.png")
questio = os.path.join(dir_icons, "question-96.png")
chat = os.path.join(dir_icons, "chat-96.png")
plus = os.path.join(dir_icons, "plus-96.png")
icons8 = os.path.join(dir_icons, "icons8-message-96.png")
bash = os.path.join(dir_icons, "bash-96.png")
archive_folder = os.path.join(dir_icons, "archive-folder-96.png")
info = os.path.join(dir_icons, "info-96.png")
console = os.path.join(dir_icons, "console-96.png")
star = os.path.join(dir_icons, "star-96.png")
upload = os.path.join(dir_icons, "upload-96.png")
download = os.path.join(dir_icons, "download-96.png")
android = os.path.join(dir_icons, "android-96.png")
minus = os.path.join(dir_icons, "minus-96.png")
iphone = os.path.join(dir_icons, "iphone-96.png")
check = os.path.join(dir_icons, "check-96.png")
file = os.path.join(dir_icons, "file-96.png")
box = os.path.join(dir_icons, "box-96.png")
lapto = os.path.join(dir_icons, "laptop-96.png")
undo = os.path.join(dir_icons, "undo-96.png")
stop = os.path.join(dir_icons, "stop-96.png")
microsoft_excel = os.path.join(dir_icons, "microsoft-excel-96.png")
gear = os.path.join(dir_icons, "gear-96.png")
rocket = os.path.join(dir_icons, "rocket-96.png")
sto = os.path.join(dir_icons, "stop-96.png")
redo = os.path.join(dir_icons, "redo-96.png")
debug = os.path.join(dir_icons, "debug-96.png")
debu = os.path.join(dir_icons, "debug-96.png")
deskto = os.path.join(dir_icons, "desktop-96.png")
git = os.path.join(dir_icons, "git-96.png")
id_card = os.path.join(dir_icons, "id-card-96.png")
message = os.path.join(dir_icons, "message-96.png")
bookmark = os.path.join(dir_icons, "bookmark-96.png")
explosio = os.path.join(dir_icons, "explosion-96.png")
close = os.path.join(dir_icons, "close-96.png")
todo = os.path.join(dir_icons, "todo-96.png")
remove = os.path.join(dir_icons, "remove-96.png")
fire = os.path.join(dir_icons, "fire-96.png")
Binary file added afwf/icons/archive-folder-96.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 afwf/icons/bash-96.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 afwf/icons/bookmark-96.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 afwf/icons/box-96.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 afwf/icons/code-96.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 afwf/icons/console-96.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 afwf/icons/desktop-96.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 afwf/icons/dictionary-96.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 afwf/icons/download-96.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 afwf/icons/explosion-96.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 afwf/icons/file-96.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 afwf/icons/fire-96.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 afwf/icons/flask-96.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 afwf/icons/folder-96.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 afwf/icons/gear-96.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 afwf/icons/git-96.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 afwf/icons/id-card-96.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 afwf/icons/idea-96.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 afwf/icons/info-96.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 afwf/icons/internet-96.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 afwf/icons/laptop-96.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 afwf/icons/mail-96.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 afwf/icons/meeting-96.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added afwf/icons/microsoft-excel-96.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 afwf/icons/microsoft-powerpoint-96.png
Binary file added afwf/icons/microsoft-word-96.png
Binary file added afwf/icons/password-96.png
Binary file added afwf/icons/rocket-96.png
Binary file added afwf/icons/star-96.png
Binary file added afwf/icons/task-96.png
Binary file added afwf/icons/trash-96.png
Binary file added afwf/icons/upload-96.png
225 changes: 225 additions & 0 deletions preview-icons.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
.. image:: android-96.png

.. image:: ./afwf/icons/android-96.png

archive-folder-96.png

.. image:: ./afwf/icons/archive-folder-96.png

bash-96.png

.. image:: ./afwf/icons/bash-96.png

bookmark-96.png

.. image:: ./afwf/icons/bookmark-96.png

box-96.png

.. image:: ./afwf/icons/box-96.png

calendar-96.png

.. image:: ./afwf/icons/calendar-96.png

chat-96.png

.. image:: ./afwf/icons/chat-96.png

check-96.png

.. image:: ./afwf/icons/check-96.png

close-96.png

.. image:: ./afwf/icons/close-96.png

code-96.png

.. image:: ./afwf/icons/code-96.png

console-96.png

.. image:: ./afwf/icons/console-96.png

debug-96.png

.. image:: ./afwf/icons/debug-96.png

desktop-96.png

.. image:: ./afwf/icons/desktop-96.png

dictionary-96.png

.. image:: ./afwf/icons/dictionary-96.png

download-96.png

.. image:: ./afwf/icons/download-96.png

error-96.png

.. image:: ./afwf/icons/error-96.png

explosion-96.png

.. image:: ./afwf/icons/explosion-96.png

file-96.png

.. image:: ./afwf/icons/file-96.png

fire-96.png

.. image:: ./afwf/icons/fire-96.png

flask-96.png

.. image:: ./afwf/icons/flask-96.png

folder-96.png

.. image:: ./afwf/icons/folder-96.png

gear-96.png

.. image:: ./afwf/icons/gear-96.png

git-96.png

.. image:: ./afwf/icons/git-96.png

groupchat-96.png

.. image:: ./afwf/icons/groupchat-96.png

id-card-96.png

.. image:: ./afwf/icons/id-card-96.png

idea-96.png

.. image:: ./afwf/icons/idea-96.png

info-96.png

.. image:: ./afwf/icons/info-96.png

internet-96.png

.. image:: ./afwf/icons/internet-96.png

iphone-96.png

.. image:: ./afwf/icons/iphone-96.png

landline-96.png

.. image:: ./afwf/icons/landline-96.png

laptop-96.png

.. image:: ./afwf/icons/laptop-96.png

mail-96.png

.. image:: ./afwf/icons/mail-96.png

meeting-96.png

.. image:: ./afwf/icons/meeting-96.png

message-96.png

.. image:: ./afwf/icons/message-96.png

microsoft-excel-96.png

.. image:: ./afwf/icons/microsoft-excel-96.png

microsoft-powerpoint-96.png

.. image:: ./afwf/icons/microsoft-powerpoint-96.png

microsoft-word-96.png

.. image:: ./afwf/icons/microsoft-word-96.png

minus-96.png

.. image:: ./afwf/icons/minus-96.png

password-96.png

.. image:: ./afwf/icons/password-96.png

pause-96.png

.. image:: ./afwf/icons/pause-96.png

plus-96.png

.. image:: ./afwf/icons/plus-96.png

question-96.png

.. image:: ./afwf/icons/question-96.png

redo-96.png

.. image:: ./afwf/icons/redo-96.png

refresh-96.png

.. image:: ./afwf/icons/refresh-96.png

remove-96.png

.. image:: ./afwf/icons/remove-96.png

reset-96.png

.. image:: ./afwf/icons/reset-96.png

rocket-96.png

.. image:: ./afwf/icons/rocket-96.png

search-96.png

.. image:: ./afwf/icons/search-96.png

star-96.png

.. image:: ./afwf/icons/star-96.png

start-96.png

.. image:: ./afwf/icons/start-96.png

stop-96.png

.. image:: ./afwf/icons/stop-96.png

task-96.png

.. image:: ./afwf/icons/task-96.png

todo-96.png

.. image:: ./afwf/icons/todo-96.png

trash-96.png

.. image:: ./afwf/icons/trash-96.png

undo-96.png

.. image:: ./afwf/icons/undo-96.png

upload-96.png

.. image:: ./afwf/icons/upload-96.png


0 comments on commit 021d95e

Please sign in to comment.