Giter VIP home page Giter VIP logo

Comments (9)

kireev4art avatar kireev4art commented on June 12, 2024 1

I believe you should render the assets as template images instead.

from sfsymbols.

owenzhao avatar owenzhao commented on June 12, 2024

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.

light mode
light_mode_revised

dark mode
dark_mode_revised

from sfsymbols.

owenzhao avatar owenzhao commented on June 12, 2024

I have managed to give you a pull. Maybe it helps.

from sfsymbols.

melgu avatar melgu commented on June 12, 2024

You could also just invert it in code.
SwiftUI example:

Image("person.crop.circle.badge.plus")
    .colorInvert()

from sfsymbols.

owenzhao avatar owenzhao commented on June 12, 2024

I have done the same result by changing the fill color. Thanks any way.

from sfsymbols.

melgu avatar melgu commented on June 12, 2024

Fill color isn't available in SwiftUI (macOS), right?

from sfsymbols.

owenzhao avatar owenzhao commented on June 12, 2024

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.

Xcode Image Assets

from sfsymbols.

davedelong avatar davedelong commented on June 12, 2024

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.

davedelong avatar davedelong commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.