Skip to content

Notion Desktop v0.2.6

Choose a tag to compare

@LBurny LBurny released this 26 Aug 10:46
· 11 commits to main since this release

English | 中文说明

Fixes the dark-mode window edge white line that only worked on some machines.

  • Fix: the DWM dark non-client-area attribute (used to remove the 1px white border on maximized frameless windows in dark mode) was hard-coded to attribute 20, which only exists on Windows 10 2004 (build 19041+). On older builds (1909, etc.) the call silently did nothing, so the white line reappeared on another machine. The script now tries attribute 20 first and falls back to 19 on a non-zero result, covering both builds.
  • Diagnostics: the DWM call result is no longer discarded. The PowerShell script previously swallowed the return value (| Out-Null) and any errors, so when the fix didn't work on another machine there was nothing to go on. It now writes a status line (which attribute succeeded, or both HRESULTs on failure, plus the "show accent color on window borders" setting), surfaced as a [dwm] line under ND_PERF=1. Failures are no longer silent.

Note: in the rare case where Windows has "Show accent color on title bars and window borders" enabled, the border follows the system accent color and overrides this setting. ND_PERF=1 shows [dwm] ... cp=1 in that case; turn that option off (or pick a dark accent color) in Settings → Personalization → Colors.

Tests: 10 new window-dark-mode unit tests (attribute 19 fallback, return value no longer swallowed, status parsing/reporting). 270 unit tests pass.

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