-
-
Notifications
You must be signed in to change notification settings - Fork 78
Bug with constantly reverting back to light mode quicklook, even though OSX is in dark #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I seem to be having the same issue too. |
Try using the HTML rendering engine. The RTF on the dark theme has some bugs, macOS automatically changes the background. |
This is the quicklook view I get when I switch to the HTML engine Which, for browsing through files, I'd absolutely hate to be forced into only having that @sbarex . For quickly scanning through files, the RTF view is essential IMO, even with the light mode issue / other bugs. |
this is unfortunately another limitation of macos, in gallery mode the html preview only shows the enlarged icon of the file (while the rtf preview shows the formatted text). Try to see in the quicklook window how it looks (press the space button) |
Yeah no, that part is completely fine - including the dark mode issue. The popup view works 100% with HTML, but just checking now and the RTF issue seems to be backwards? Btw, I'm more than happy to spend a bit of time investigating this issue myself, I just wasn't totally sure how I go about installing the service locally from the XCode project. I was in there poking around the other day, but just don't have any of that specific MacOS app dev experience, on the services-ish side of things. |
I have not found any Apple documentation regarding RTF codes for managing dark mode. Theoretically it is possible to create RTF files that automatically adapt to the light/dark theme. By the way, the creation of the RTF output is managed by the external Some ideas can be found in: |
I think this bug is best shown with a screenrecord:
darklight.mov.mp4
You can see that it's showing up as very bright light, despite me being in dark mode. When I then change to OSX's light mode, it changes to dark for a second (I think incorrectly?), and then back to light. Then I switch back to dark mode, and it does nothing. Then I go light mode, dark mode again, and it shows as dark mode, properly now, but when I go to another file, it's back in light mode again.
I looked in the code, as per the advice here https://developer.apple.com/documentation/uikit/supporting-dark-mode-in-your-interface which had this snippet
But the only reference to
effectiveAppearance
in the code is here,SourceCodeSyntaxHighlight/QLExtension/PreviewViewController.swift
Line 85 in d8460c6
Which seems to be where the problem is. The fixme there is translated as
But yeah, for my experience, it's not a sometimes issue, this is never right, for me, when in dark mode.
The text was updated successfully, but these errors were encountered: