Comments (9)
I believe you should render the assets as template images instead.
from sfsymbols.
Changing fill color from black to white can provide dark mode images. I have update the project to provide both images in light and dark mode. However, I don't know how to send my revised code.
from sfsymbols.
I have managed to give you a pull. Maybe it helps.
from sfsymbols.
You could also just invert it in code.
SwiftUI example:
Image("person.crop.circle.badge.plus")
.colorInvert()
from sfsymbols.
I have done the same result by changing the fill color. Thanks any way.
from sfsymbols.
Fill color isn't available in SwiftUI (macOS), right?
from sfsymbols.
Fill color isn't available in SwiftUI (macOS), right?
I didn't change the code on my own project. Instead, I did it by revising the code of the talking project. And write both light images and dark images at the same time. So I could enjoy the benefit of Xcode assets.
from sfsymbols.
I'm repurposing this to track the "export as template images" work.
This should also apply to the other formats that exports as an iconset.
from sfsymbols.
Both PNGs and PDFs get marked as being template images when exported as part of asset catalogs. I just verified that they render correct in light and dark mode.
from sfsymbols.
Related Issues (19)
- Specify stroke width HOT 3
- Provide optional padding parameter
- No files are output HOT 4
- Only seems to export Regular weight HOT 2
- It's put by mistake
- Specify path to font file HOT 1
- Does not build with swift 5.1.3 (included in Xcode 11.3.1) under Mojave HOT 4
- sfsymbols.ArgumentParserError error 5. HOT 11
- Add open source license HOT 1
- it seems like the iconset should be imageset
- Convert to Swift
- Not work with SF Symbols 2.1 font file HOT 2
- Account for non-mirrorable attributes HOT 2
- Add iconset generator HOT 1
- Namespace generated Swift paths HOT 2
- Alignment problem with symbols that have a positive y offset for their path HOT 1
- Look for the SF fonts
- Allow export as squares HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sfsymbols.