Okay, I have tried to make the text previews much more legible but still show enough text to be useful.
I have also converted the text thumbnailer to use QPalette::Base for the background colour and QPalette::Text for the foreground text colour.
So under dark mode this should show white text on a dark background and visa-versa on a light mode.
I tested this under macOS and the text shows nicely under both light and dark modes but I will have to figure something out to make it actively switch when the theme is changed in the middl;e of opeing a file (a possibility on MacOS that can auto change theme based on time of day).
I have pushed this to master.
So when you get a free moment, please give this a try and let me know if the changes help. If so, I will start work on detecting the palette change and reloading the current preview so auto theme changes are better handled.
Thanks,
|