silicon icon indicating copy to clipboard operation
silicon copied to clipboard

Window without text on mac with some themes

Open llimllib opened this issue 2 years ago • 2 comments

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 avatar Jun 27 '22 19:06 llimllib

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

llimllib avatar Jun 27 '22 19:06 llimllib

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.

WilliamWelsh avatar Dec 04 '22 05:12 WilliamWelsh