Skip to content

Notion Desktop v0.2.7

Choose a tag to compare

@LBurny LBurny released this 26 Aug 12:16
· 9 commits to main since this release

English | 中文说明

Fixes the dark-mode window edge white line that still appeared on some machines running the same Windows build — the actual root cause.

  • Fix: the real cross-machine root cause was not the DWM attribute number (v0.2.6's 19-fallback was a valid robustness improvement but not the cause here). It was a re-apply timing issue. When theme.json already persisted dark, the app treated the theme as dark from startup, so the early applyWindowDarkMode call at window creation (before the window was fully realized) didn't take effect. Later, when Notion reported dark (window now ready), the report was deduped as "theme unchanged" and onApplied was never called again — so the dark non-client area never got a second chance to apply, and the 1px white border persisted. The dev machine happened to have timing where the early call took effect, so it looked like "only works on one machine." theme-service now triggers onApplied on every valid theme report (even when unchanged), so Notion's dark report — arriving once the window is ready — reliably applies the dark NC area. Persistence still only happens on actual change.
  • Kept (from v0.2.6): DWM attribute 20→19 fallback for builds < 19041, and the no-longer-silent result reporting ([dwm] line under ND_PERF=1, with HRESULTs and ColorPrevalence hint on failure).

Tests: updated the theme-dedup test and added a cross-machine white-line regression test. 271 unit tests pass.

Download Notion.Desktop.Setup.0.2.7.exe (NSIS installer, selectable install directory).