Fixing a hard-to-find bug in Dark Mode

The worst kind of software bugs are inconsistent: sometimes they occur, sometimes they don't. In this post, Jesse Squires tracks down such a bug, and explains how he implemented the fix.