I work mostly in markdown, and I’ve been developing a CSS document to support this…in both light and dark modes.
I also usually work with a document window holding multiple documents in tabs. (This is great for me, thanks for enabling it. )
however…
When I toggle dark/light mode, only the “front-most” (visible?) tab of these documents gets adjusted. All of the remaining tabs retain their color profile. So if I switch from light to dark, the current tab gets “darkened” but the remaining tabs do not. And I can’t figure a way to trigger a “re-render” to get them to respect the current light/dark setting.
It’s eerie how you figured that. Yes indeed, I have been refining my markdown stylesheet. From no support for dark mode to now having some. That work is done save for final tweaks. (thanks for the pointers you’d posted for this, btw.)
The stylesheet is in an indexed folder, and I reference it in the Files → Markdown preference pane by x-devonthink-item:// link.
Oh, I’m working on the stylesheet in BBEdit. I use it for all my markdown (one of the reasons I used indexed folders.)
Restarting DEVONthink causes all the pages to re-render and preserves my session state, so it’s an acceptable workaround. Just something of a pain during times when I am switching dark/light mode off and on frequently, as I was when I was refining the CSS stylesheet.
But most of that is behind me now, and I’m not even sure it would be reasonable to ask that tabbed documents that don’t have focus could be re-rendered. Or even possible.
The workaround is fine, thanks again for your help Jim.
Late to the topic. I found a simpler workaround, which does not require quitting and restarting the program. Cycling through the 3 Document Display modes (Control+Command+P/X/Y) prompts DT to re-render the document in accordance to the current system Appearance.
As to @BLUEFROG’s question of how often the Appearance change should occur in a normal workflow: Twice per day, if you have System Settings > Appearance > Appearance set to Auto, which I do.
This is far from a game-breaking glitch, but it is a constant annoyance under certain settings. It will be appreciated for sure if the glitch gets fixed someday, although I understand there are good reasons to place it near the end of a long to-do list