Skip to content

macOS Ventura 13.0 inverted theme with RTF engine #202

Open

Description

@Altair-Bueno

Summary

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

image

Dark mode disabled

image

Dark mode enabled

image

Additional information

  • I've tried Python, Rust and Yaml sources
  • HTML engine appears to be working fine

image

System info

  • macOS Ventura 13.0
  • Syntax Highlight 2.1.15 (64)

Activity

  1. sbarex commented on Oct 25, 2022

    @sbarex
    Owner

    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/

  2. ParzivalExe commented on Oct 30, 2022

    @ParzivalExe

    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 😉

  3. sbarex commented on Oct 30, 2022

    @sbarex
    Owner

    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.

  4. cpsauer commented on Feb 4, 2023

    @cpsauer

    Perhaps we should switch the default to HTML until we figure out a fix?

  5. Altair-Bueno commented on Feb 4, 2023

    @Altair-Bueno
    Author

    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

  6. onaparrado commented on Apr 5, 2023

    @onaparrado

    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:

    image

    With SyntaxHighlight, RTF engine:

    image

    With SyntaxHighlight, HTML engine:

    image

  7. simioni commented on Apr 6, 2023

    @simioni

    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).

    Screenshot 2023-04-06 at 10 47 50 AM

  8. MatisseHack commented on Apr 6, 2023

    @MatisseHack

    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!

  9. learn2reid commented on Jun 17, 2023

    @learn2reid

    Does someone have an inverse light mode scheme they can share?

  10. EddieLukeAtmey commented on Jun 21, 2023

    @EddieLukeAtmey

    @learn2reid you select the theme right there, click on the filter and select dark content like this

    Screenshot 2023-06-21 at 17 09 24

  11. khurshid-alam commented on Aug 4, 2024

    @khurshid-alam

    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.

  12. sbarex commented on Aug 6, 2024

    @sbarex
    Owner

    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.

  13. learn2reid commented on Aug 20, 2024

    @learn2reid

    but html engine doesn't show sidebar previews so this is still a problem :(

  14. sbarex commented on Aug 24, 2024

    @sbarex
    Owner

    what do you mean the html engine doesn't show the preview in the sidebar?

    but html engine doesn't show sidebar previews so this is still a problem :(

  15. MikeSuiter commented on Aug 29, 2024

    @MikeSuiter

    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.

    image
  16. i0ntempest commented on Sep 21, 2024

    @i0ntempest

    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,

  17. Parishpanom commented on Nov 8, 2024

    @Parishpanom

    Js

  18. ani-per commented on Mar 9, 2025

    @ani-per

    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.

    image

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions