-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[macos] Dark mode #641
Comments
I also use macOS, and your wrapper approach is currently the only way it's possible right now. It wouldn't be hard to add native support for macOS dark mode, but I feel like this isn't something that should be included inside bat itself. Any implementation I can think of off the top of my head is either going to be: A. A hidden version of your hack that forks B. Require a Rust<->ObjC binding or FFI. In the case of the latter, that's a huge dependency to add for a small feature that doesn't really add anything to improve the core functionality of bat itself. In either case though, I can see this quickly becoming feature creep when people want to add Windows/[Insert Linux DE] support for dark mode detection. It also doesn't really take the terminal theme into consideration (e.g. I use a dark terminal with light mode), which could be counterintuitive. But, that being said, I think adding your wrapper script to the documentation would be a great idea to help other people who want theme switching based on macOS dark/light mode. |
@jerguslejko Thank you for your feedback! I'm with @eth-p on this.
👍 |
Sounds great. Maybe in a new
👍 |
Closed in #662 by @jerguslejko |
Just for anybody coming across this issue: this isn't actually necessary. See #1746 for details. |
Hi,
is there a way to instruct
bat
to use a different theme when the OS (macOS in particular) is using a dark theme/mode?Right now, I use this "hack" which works fine, but I'm wondering if there is a more native approach to this.
Thank you!
The text was updated successfully, but these errors were encountered: