anthonygelibert/QLColorCode

hlTheme is always ide-xcode

grischard opened this issue · 0 comments

No matter what defaults write org.n8gray.QLColorCode hlTheme is set to, ide-xcode is the theme that QLColorCode uses. The documentation should maybe be updated to mention the darkTheme and lightTheme

How to reproduce:

  • brew cask install qlcolorcode
  • defaults write org.n8gray.QLColorCode hlTheme solarized-dark
  • Preview a file

Expected results:

Preview shown with zenburn theme

Actual results:

Preview shown with ide-xcode theme

Discussion:

// Change hlTheme according to system's darkmode setting.
always overrides the hlTheme variable. Behaviour depends on whether macOS is in Dark mode or not.

Workaround:

Set the darkTheme and lightTheme variables:

defaults write org.n8gray.QLColorCode lightTheme solarized-light
defaults write org.n8gray.QLColorCode darkTheme solarized-dark