Repository navigation
Conversation
…dden on iOS When the full screen chat window is hidden, iOS leaves the application without a key window. The palette is then resolved from the default light appearance, so the main window is painted with black text on the dark background it still has until it becomes the key window again, which happened only when the user tapped it or switched away from the application and back. Raise and activate the main window when the chat window is hidden.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Probably yes, however I do not really trust that Qt will implement this... |
|
Not a severe bug, only slightly annoying. May or may not warrant a back port... |
| } | ||
|
|
||
| // Connections ------------------------------------------------------------- | ||
| // react to the chat window being hidden, see eventFilter() |
There was a problem hiding this comment.
Probably also ifdef for iOS only
Short description of changes
Make the main window the key window again when the chat window is hidden on iOS.
When the full screen chat window is hidden, iOS leaves the application without a key window. The palette is then resolved from the default light appearance, so the main window is painted with black text on the dark background it still has, until it becomes key again — which happened only when the user tapped the window, or switched to another app and back.
CClientDlgnow watches the chat window with an event filter and raises and activates itself when the chat is hidden. The handler is guarded withQ_OS_IOS.A related but separate problem is fixed in #3999: dialogs opened after the system appearance is known used to be painted with the light palette once.
CHANGELOG: iOS: Fixed the main window being unreadable after closing the chat window in dark mode
Context: Fixes an issue?
Fixes #3994 (dark mode item).
Measured on the iPad Pro 11-inch simulator with Qt 6.11.1, system in dark mode:
Does this change need documentation? What needs to be documented and how?
No.
Status of this Pull Request
Working implementation.
What is missing until this pull request can be merged?