silicon
silicon copied to clipboard
Window without text on mac with some themes
on an m1 macbook pro running Monterey, some themes give me an empty window:
silicon --theme=base16 --to-clipboard /tmp/deleteme.makefile
While others work:
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.
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
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.