Code Monkey home page Code Monkey logo

Comments (6)

tonsky avatar tonsky commented on June 27, 2024 1

I am thinking making them black with white outline (black) and white with black outline (white). That way they will work on both backgrounds, without switching.

from anybar.

6twenty avatar 6twenty commented on June 27, 2024

Not that I know anything about Mac app development, but on reading up about this it sounds like the most reliable solution is to set setTemplate:YES on the "black" and "white" images so that the os can invert them automatically when it wants to use white menu bar icons instead of black ones. I imagine this would mean also removing the _dark code that switches to the "_alt" variants.

from anybar.

tonsky avatar tonsky commented on June 27, 2024

Well the trick with _dark is that on "black" on light scheme is a filled circle but empty donut on a dark theme. It changes shape, otherwise filled black circle will become filled white circle, and calling filled white circle "black" is weird.

Is there any way to detect when Big Sur changes menubar color?

from anybar.

6twenty avatar 6twenty commented on June 27, 2024

Ah, that's a good point. From the searches I did, no, there's no known Big Sur API to detect when it switches between white & black icons.

Would it be an option to add entirely separate images instead? E.g. "donut" and "fill" - using names that don't relate to light or dark at all - that have setTemplate:YES on just those ones?

from anybar.

tonsky avatar tonsky commented on June 27, 2024

Made filled and hollow, added inverted borders to black and white, removed _alt versions. Published 0.2.3. Thanks!

from anybar.

6twenty avatar 6twenty commented on June 27, 2024

💐 thank you!

from anybar.

Related Issues (20)

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.