Closed Chirishman closed 2 years ago
I'll leave this issue open for now, but I don't think I'm not going to be able to do anything about it.
For those of us who didn't know off hand, RDP is Remote Desktop Protocol, a proprietary Microsoft protocol for remote access. I don't actually know anything about RDP, nor do I have a suitable setup for testing with it.
The only thing FFF does with color palette/theme is look for it and change some colors with:
if( hasattr(QApplication.instance(),'is_dark_theme')
and QApplication.instance().is_dark_theme ):
And that code is only called when you open the personal.ini
editor or view the download log.
My only idea is setting your Calibre "Color palette" to Dark explicitly instead of System Default.
My only idea is setting your Calibre "Color palette" to Dark explicitly instead of System Default.
That's the thing unfortunately, it already is set explicitly to Dark...
I found another way to trigger the behavior: Using the bulk metadata editor and then doing the RDP Disconnect/Reconnect.
Now to go report it on the Calibre repo...
So I know this is a weird edge case scenario but here's my observed behavior and usage pattern.
I run Calibre and fanficfare on my windows file server. As a result I connect to it to check updates etc via RDP.
Versions tested:
Calibre: 6.0 and 6.1 FanFicFare: 4.14.3
Steps to Reproduce:
Observed Behavior:
Calibre switches from Dark Mode to Light Mode (without closing and reopening which is normally required to change modes) about 0.5 to 1 seconds after the RDP session reconnects.
Screen Recording
Fully closing restarting Calibre will return it to dark mode, merely closing it to the system tray and reopening will not.
Excluded Possibilities & Thoughts
I've waited for it to occur on its own without doing the RDP disconnect/reconnect and it doesn't seem to be time based. It appears to be specifically triggered by the RDP session disconnecting and reconnecting. This may have to do with the resolution and DPI being set/changed during the RDP.
I understand this is most likely a Calibre bug/regression of some kind but no other plugin that I have nor any non-plugin interaction I can think of seems to trigger this behavior and I'm at a loss for how this could be occurring.
Here's the debug mode log, unfortunately the last event added to it is when I click "yes" and it doesn't seem to be producing any log entries connected to/during/after the RDP reconnect.
Debug Log