Skip to content
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

Window without text on mac with some themes #198

Open
llimllib opened this issue Jun 27, 2022 · 2 comments
Open

Window without text on mac with some themes #198

llimllib opened this issue Jun 27, 2022 · 2 comments

Comments

@llimllib
Copy link

llimllib commented Jun 27, 2022

on an m1 macbook pro running Monterey, some themes give me an empty window:

silicon --theme=base16 --to-clipboard /tmp/deleteme.makefile

image

While others work:

image

I wrote a script to test all the themes:

themes=("1337" "Coldark-Cold" "Coldark-Dark" "DarkNeon" "Dracula" "GitHub" "Monokai Extended" "Monokai Extended Bright" "Monokai Extended Light" "Monokai Extended Origin" "Nord" "OneHalfDark" "OneHalfLight" "Solarized (dark)" "Solarized (light)" "Sublime Snazzy" "TwoDark" "ansi-dark" "ansi-light" "base16" "base16-256" "gruvbox" "gruvbox-light" "gruvbox-white" "zenburn")

for theme in "${themes[@]}"
do
    silicon --theme="$theme" --output="/tmp/silicon-$theme.png" /tmp/deleteme.makefile
done

And the ones that fail are: ansi-dark, ansi-light, base16, and base16-256. I wasn't able to find anything that would let me get verbose information on what silicon was doing, so I don't have much more info to report.

I tested with a python file to see if the file type might be the culprit, and got the same results.

For the above test, I am using a version built with cargo. I tried this version after the one I downloaded with homebrew failed, thinking it might work, but they fail in the same way.

This may be related to #147, but I'm not sure.

If there's anything I can do to help debug, please let me know, I'd be happy to help.

@llimllib
Copy link
Author

Also since the themes dir says that you're using bat's color scheme format, I tested and bat --theme=base16 /some/file works correctly

@WilliamWelsh
Copy link

I'm on a Mac and those themes also don't work for me. I ended up putting a custom base16 .tmTheme file in my themes dir, rebuilt the cache, and set it as a default in my config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants