You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS Ventura 13.0 inverted theme with RTF engine #202
RTF engine does not work properly on macOS Ventura
Expected behaviour
Dark colorscheme on dark theme, light colorscheme on light theme
Current behaviour
Dark colorscheme on light theme, light colorscheme on dark theme
Screenshots
SyntaxHighlight config
Dark mode disabled
Dark mode enabled
Additional information
I've tried Python, Rust and Yaml sources
HTML engine appears to be working fine
System info
macOS Ventura 13.0
Syntax Highlight 2.1.15 (64)
Reacted by Teddy Sadowski, ParzivalExe, JasonChiang, Lui Habl, Luong Vo, Rafael Asenjo, Mekan Allanov, murdock-grewar, Cédric Loneux, Artem Batalov and 8 more
The colors are not inverted. But on dark mode Venura blend the window background color with the rtf colors!
For now I do not have a solution. Please use the html engine.
I have the same Problem (which wouldn't be much news). I am writing this comment mainly because it is not simply: If you have Ventura, you have this problem:
A friend uses Syntax Highlight with Ventura and has the desired effect (dark-mode shows dark-mode and light-mode shows light-mode). He also uses Apple-Silicon like me, so that is also not the difference.
I have no idea what the difference between both of your systems could be. We even went so far as to AirDrop the App from his Device right onto mine and it still didn't work for me.
If you activate the debug mode, on the desktop a colorize.rtf file will be created. If it is opened in textedit it will have the same problem. To see it normally in textedit you have to deactivate the option "use dark background for windows" on the view menu.
Apple unfortunately does not document rtf syntax for the color styles for light and dark themes.
Totally forgot about this issue. HTML engine gave me zero issues for the last 3 months. Switching the default engine temporally looks like a good patch to me
The HTML animation is also a bit wonky (at least on Ventura 13.3 on M1 Pro). The quick-look preview starts out as white, and the HTML rendering engine only gets to paint it dark a couple frames after the animation has already started. It doesn't look smooth.
What worked for me to fix the colors on the RTS engine was setting a light theme for the dark color scheme of Syntax Highlighter (basically inverting the colors in the preferences).
Reacted by NoSloppy, Marcel Bochtler, hkic, Benoni Jiang and Önder
Reacted by Emad Aghajani, Eddie Luke Atmey, nathan contino and Giorgio Mendieta
What worked for me to fix the colors on the RTS engine was setting a light theme for the dark color scheme of Syntax Highlighter (basically inverting the colors in the preferences).
Oh, that worked! Setting a dark color scheme in light mode wasn't enough, but setting a light color scheme in dark mode seems to have fixed it!
Reacted by Zeng Liang, Jesse Emery, HeySora, letallan and Giorgio Mendieta
It didn't exactly work for me. Even though it fixes the color, it is not exactly same like in HTML rendering. In Raycast it just shows wrong color with RTF. And If you press ⌘ + Y to quick look, it opens preview in same wrong color.
The RTF engine was useful when the HTML view was plagued by a series of bugs, but with the latest operating system updates you can safely use the HTML engine.
what do you mean the html engine doesn't show the preview in the sidebar?
I having the same problem with no preview in the sidebar using HTML render.
@sbarex I see here that you plan to remove RTF mode in the near future, so just wanted to let you know that this sidebar preview-breaking bug still persists in HTML mode as of v2.1.25 (74). Assigning light scheme to dark and vice versa in RTF mode works for now to preserve the sidebar preview.
Reacted by Lucas Becker, Timo Streule, TJ Goldblatt, Lorelle Reid, Önder and TehBrian
Activity
sbarex commentedon Oct 25, 2022
The colors are not inverted. But on dark mode Venura blend the window background color with the rtf colors!
For now I do not have a solution. Please use the html engine.
see these links:
https://eclecticlight.co/2018/11/14/making-documents-look-good-in-both-appearance-modes/
https://eclecticlight.co/2018/12/06/textedit-1-14-not-the-dark-mode-youd-expect/
https://eclecticlight.co/2018/12/10/rendering-rich-text-in-dark-mode/
ParzivalExe commentedon Oct 30, 2022
I have the same Problem (which wouldn't be much news). I am writing this comment mainly because it is not simply: If you have Ventura, you have this problem:
A friend uses Syntax Highlight with Ventura and has the desired effect (dark-mode shows dark-mode and light-mode shows light-mode). He also uses Apple-Silicon like me, so that is also not the difference.
I have no idea what the difference between both of your systems could be. We even went so far as to AirDrop the App from his Device right onto mine and it still didn't work for me.
Well, I will probably use HTML in the meantime 😉
sbarex commentedon Oct 30, 2022
If you activate the debug mode, on the desktop a colorize.rtf file will be created. If it is opened in textedit it will have the same problem. To see it normally in textedit you have to deactivate the option "use dark background for windows" on the view menu.
Apple unfortunately does not document rtf syntax for the color styles for light and dark themes.
cpsauer commentedon Feb 4, 2023
Perhaps we should switch the default to HTML until we figure out a fix?
Altair-Bueno commentedon Feb 4, 2023
Totally forgot about this issue. HTML engine gave me zero issues for the last 3 months. Switching the default engine temporally looks like a good patch to me
onaparrado commentedon Apr 5, 2023
But the HTML engine doesn't render embedded in finder, you need to actually open QuickLook to see what's inside.
A Finder snapshot without SyntaxHighlight:
With SyntaxHighlight, RTF engine:
With SyntaxHighlight, HTML engine:
simioni commentedon Apr 6, 2023
The HTML animation is also a bit wonky (at least on Ventura 13.3 on M1 Pro). The quick-look preview starts out as white, and the HTML rendering engine only gets to paint it dark a couple frames after the animation has already started. It doesn't look smooth.
What worked for me to fix the colors on the RTS engine was setting a light theme for the dark color scheme of Syntax Highlighter (basically inverting the colors in the preferences).
MatisseHack commentedon Apr 6, 2023
Oh, that worked! Setting a dark color scheme in light mode wasn't enough, but setting a light color scheme in dark mode seems to have fixed it!
learn2reid commentedon Jun 17, 2023
Does someone have an inverse light mode scheme they can share?
EddieLukeAtmey commentedon Jun 21, 2023
@learn2reid you select the theme right there, click on the filter and select dark content like this
khurshid-alam commentedon Aug 4, 2024
It didn't exactly work for me. Even though it fixes the color, it is not exactly same like in HTML rendering. In Raycast it just shows wrong color with RTF. And If you press ⌘ + Y to quick look, it opens preview in same wrong color.
This is very troubling issue.
sbarex commentedon Aug 6, 2024
The RTF engine was useful when the HTML view was plagued by a series of bugs, but with the latest operating system updates you can safely use the HTML engine.
learn2reid commentedon Aug 20, 2024
but html engine doesn't show sidebar previews so this is still a problem :(
sbarex commentedon Aug 24, 2024
what do you mean the html engine doesn't show the preview in the sidebar?
MikeSuiter commentedon Aug 29, 2024
I having the same problem with no preview in the sidebar using HTML render.
i0ntempest commentedon Sep 21, 2024
Fow now to keep using RTF engine I just set both Light and Dark theme to the same Light theme. Then let the system do the color change,
Parishpanom commentedon Nov 8, 2024
Js
ani-per commentedon Mar 9, 2025
@sbarex I see here that you plan to remove RTF mode in the near future, so just wanted to let you know that this sidebar preview-breaking bug still persists in HTML mode as of
v2.1.25 (74). Assigning light scheme to dark and vice versa in RTF mode works for now to preserve the sidebar preview.