Skip to content
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

Suppress PDF appearance mode change from dark to light upon dismissal #813

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

mvasilak
Copy link
Contributor

@mvasilak mvasilak commented Nov 27, 2023

Fixes https://forums.zotero.org/discussion/109476/zotero-ipad-dark-mode-minor-inconvenience

When view controller is dismissed, the appearance mode is reset by the library, resulting to the visual change as the dismissal animates. Fixed by always overrding explicitly the appearance mode, using the proper delegate.
(Also reported to PSPDFKit, in case it is not expected behavior)
Fixed by setting relevant PDFViewController property.

@mvasilak mvasilak self-assigned this Nov 27, 2023
@michalrentka michalrentka merged commit 0ef8ea6 into zotero:master Nov 28, 2023
@mvasilak mvasilak deleted the fix-pdf-color-flash branch November 28, 2023 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants