Comments (6)
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.
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.
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.
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.
Made filled
and hollow
, added inverted borders to black
and white
, removed _alt
versions. Published 0.2.3. Thanks!
from anybar.
💐 thank you!
from anybar.
Related Issues (20)
- Icons support
- nc: invalid option -- 4 HOT 3
- [Security] Path Traversal HOT 2
- How to prevent anybar from stealing my current window focus? HOT 2
- Support XDG Base Directory Specification for custom image folder HOT 1
- Mojave: shell command with nc exiting with nc error HOT 2
- emoji HOT 1
- Flashing Icon Feature Req HOT 2
- The executable in AnyBar-0.2.0.zip has version number 0.1.4 HOT 2
- Feature Request: arbitrary message HOT 2
- Pass starting color to AnyBar? HOT 4
- Error on trying to open the app HOT 2
- Alfred workflow link broken HOT 1
- Can't open on Mac OS 10.15.7 HOT 2
- 0.2.3 opening old style dots on 10.15.7 HOT 4
- bash' network redirection preferred over nc HOT 4
- Would it be possible to not display a warning AnyBar icon in the menu bar when the port is already taken? HOT 5
- Start automatically on traffic HOT 2
- "_alt" images for dark system appearance setting not working 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 anybar.