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

Add option to use an SF Symbol as input #80

Open
niklasbogensperger opened this issue Nov 30, 2023 · 2 comments
Open

Add option to use an SF Symbol as input #80

niklasbogensperger opened this issue Nov 30, 2023 · 2 comments

Comments

@niklasbogensperger
Copy link

I am using this project to get the icons in the Finder sidebar styled.
While it is possible to use completely custom icons for this, the recommended way is to use Apple's built-in SF Symbols.
I am using several of these self-made Finder Sync Extensions to theme the sidebar and now want the folder icons in the main window to match as well. While I can and will manually copy out the respective SF Symbols and run folderify, would it be possible to offer something like a --sfsymbol <identifier> option as an alternative to specifying an input file?
From what I can see, this is what Apple themselves use to create the custom folder icons.

@lgarron
Copy link
Owner

lgarron commented Dec 8, 2023

I think this is a good candidate for Unix-style composability. Presumably you can write a Swift script to output a .png, which you can then send to folderify.

I poked at this a bit, but I haven't figure out how to write the image to disk from Swift.

@niklasbogensperger
Copy link
Author

niklasbogensperger commented Dec 9, 2023

If it helps, I found this project on github which does something similar as folderify: https://github.com/kfreitag1/FancyFolders
They are using Python, but the relevant function where they extract the SF Symbol is here: https://github.com/kfreitag1/FancyFolders/blob/master/fancyfolders/imagetransformations.py#L160
I don't know much about Swift rust but according to some googling emulating the same functionality with CoreImage image-rs should be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants