FocusMask (Code Name: Project Ying) is a lightweight productivity tool designed to reduce visual distractions on Windows. It automatically dims everything on your screen except the active window, creating a "Spotlight" effect that follows your focus.
影·幕 是一款 Windows 全局专注工具。它会自动将非活动窗口压暗,只高亮当前正在操作的窗口。配合丝滑的动画过渡,助你屏蔽纷扰,迅速进入心流状态。
"Bringing the HazeOver experience to Windows."
FocusMask is a tribute to the legendary macOS utility, HazeOver. We love the "dimming" concept on Mac, so we built a native, open-source alternative for Windows users.
致敬 macOS 平台的神级工具 HazeOver。 我们希望能将这种“聚光灯”般的沉浸式专注体验带给 Windows 用户,让多窗口工作不再杂乱。
- Smart Detection: Automatically detects the foreground window and cuts a "hole" in the dark mask.
- DWM Precision: Uses
DwmGetWindowAttributeto accurately calculate window bounds (ignoring invisible drop shadows).
- Smooth Animation: Window transitions are interpolated (Lerp), making the spotlight "slide" rather than jump.
- Mouse Passthrough: The dark layer uses
WS_EX_TRANSPARENT, meaning it is purely visual. You can still click through the darkness to select other windows.
- Double Tap
Alt: Quickly toggle the effect On/Off. (双击 Alt 开关) Alt+ Mouse Wheel: Adjust the dimming opacity on the fly. (Alt + 滚轮调节亮度)
Built with C# & WPF, utilizing low-level Windows Hooks for maximum performance.
Download the latest portable .exe from Releases.
- Open
FocusMask.slnin Visual Studio. - Select
Releaseconfiguration. - Build solution (
Ctrl+Shift+B). - Run the generated executable. No installation required.
This project is licensed under the Apache License 2.0.
Made with ❤️ by Linkium