When switching back to Drafts after a light/dark mode change, when Drafts hasn’t been used recently (<- that part is important, this is tough to repro), it’s usually stuck on the previous mode.
And switching away + switching back to Drafts usually only changes background colors, not foreground/text… it’s weird.
iCloud video: iCloud
I have a feeling that the APIs that Drafts calls (when it wakes back up / is switched to) are either lying to it or are stale / untrustworthy.
May need to make a 2nd query, after a 1s delay maybe, to really be sure you’ve been given the right mode by iOS.
This happens to me almost daily on both iPhone and iPad. Latest version of iOS on both, latest store version of the app.
Safe to say this is likely always related to the system having changed between light-dark automatically (like on a schedule) while Drafts was running in the background?
Yeah, probably 100% of the time
This is still an issue 100% of the time for me – twice daily, on each device.
When I use iPad or iPhone for the first time after the system has toggled light/dark, Drafts is still stuck on the previous one, until I close/reopen Drafts (or switch to another app and switch back, but often this doesn’t help).
I know back several years ago Drafts added it’s own logic to try to catch the system light/dark-mode change – it might be worth removing that, to see if it’s even needed, and might remedy edge cases like me.
Thanks.
1 Like
I switched both my iOS devices back to system mode theme switching for the last 24h and haven’t been able to reproduce this…but I’ll keep an eye out.
Appreciated - yeah, it’s not reproducible or something that others are hitting (I’d asked in slack a couple times in years past - crickets)
Hence only path forward is if there was some obsolete theme-switch-catching code you’ve wanted to rip out for awhile, hopefully one of those refactorings ends up doing the trick
Cheers 
1 Like
One other detail on this oldie –
The iOS app does switch to the right theme, but the 2nd time I bring the app to the fore, never the 1st
Feels like there’s some code that’s resisting making the theme change when it’s reawakened after several hours
So the flow goes:
- Open iPad in the morning
- Presume I’m on an app other than Drafts
- Switch to Drafts (usually via cmd-tab on keyboard, if that matters)
- Drafts is still in dark/night mode
- Cmd-tab to another app
- Cmd-tab back to Drafts, there it goes back to light/day theme
(don’t think the keyboard/cmd-tab matters because this also happens reliably on iPhone)