sbarex / SourceCodeSyntaxHighlight

Quick Look extension for highlight source code files on macOS 10.15 and later.
GNU General Public License v3.0
3.02k stars 72 forks source link

Theme is Inverted if First File Preview is in Dark Mode #220

Open novyboy opened 1 year ago

novyboy commented 1 year ago

If your Mac is already in Dark Mode when you preview a file, the theme is inverted for every file you preview until you relaunch Finder, change your system to Light Mode, and then preview your first file.

ocreturner commented 1 year ago

I too am having the same issue as OP

RWCoding58 commented 1 year ago

I've been having this issue for quite a while too. The light theme at the first launch is permanently set, and changing to another light theme in the app doesn't change any of the files' themes.

Edit: Changing the render from RTF to HTML works as a temporary fix. Also, I can't solve the problem with the solution in OP's comment (relaunching Finder and changing the system theme).

tony-sol commented 1 year ago

Same problem here, but workaround with switching from RTF to HTLM disables preview at all

CalaW commented 1 year ago

Same here, change render engine to HTML works for me.

sbarex commented 1 year ago

Can be related to https://github.com/sbarex/SourceCodeSyntaxHighlight/issues/202 ?

RWCoding58 commented 1 year ago

Can be related to #202 ?

It's likely the same issue. Also, the light mode fix works without needing to relaunch Finder.

tweaksalot commented 7 months ago

changing render engine to HTML worked for me as well allowing me to keep finder in dark mode

martimlobao commented 1 month ago

Finally got this to work by uninstalling, deleting preferences, logging out/rebooting, setting appearance to light mode, installing the app again, checking that quick look was working properly in light mode, and then finally switching to dark mode again.