-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
List of all icons #634
Comments
well.. better than nothing rootfolder = "/opt/conda/lib/python3.7/site-packages/resources"
html = ["""
<style>
ul {
list-style: none;
}
</style>
"""]
html.append("<ul>")
def looprun(folder):
print("folder", folder)
for filename in os.listdir(folder):
filepath = folder+"/"+filename
if os.path.isdir(filepath):
html.append("<li style='clear:both;'>")
html.append(filename)
html.append("<ul>")
looprun(filepath)
html.append("</ul>")
html.append("</li>")
else:
if not filename.endswith(".png"): continue
bg = 'gray' if 'white' in filename else 'white'
html.append(f"<li style='float:left;background:{bg};'>")
html.append(f"<img src='{filepath}' style='height:40px;' title='{filepath}'/>")
html.append("</li>")
looprun(rootfolder)
html.append("</ul>") |
@CrashLaker Can you also put the name under each icon? Here is what I did: |
hi @clayms , what i did
you could also
then
|
This would be a great addition to the docs. |
Also see: #624 |
I think #499 is enough. |
Merged
The website is updated by #499. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all!
Amazing project.
Wondering if there's a way to have a view of all icons like in a gallery or grid.
Regards,
C.
The text was updated successfully, but these errors were encountered: