mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
Introduced `WindowParser` to parse `windowN` segments for PIP/PBP capabilities in MCCS strings. Added new data models (`WindowCapability`, `WindowArea`, `WindowSize`) to represent parsed window data. Updated `MccsCapabilitiesParser` to handle `windowN` segments and added unit tests for various configurations. Refactored brightness control in `DdcCiController` to exclusively use VCP code `0x10`, removing high-level API methods. Updated `DdcCiNative` to streamline brightness operations. Revised `LightSwitchListener` and `LightSwitchStateManager` to use separate light/dark theme events, eliminating race conditions. Removed registry-based theme detection logic. Enhanced `VcpCodeNames` with additional VCP codes and improved categorization. Updated documentation and architecture diagrams to reflect these changes. Removed unused legacy methods and improved logging and error handling.
PowerToys Source Code
Code organization
The PowerToys are split into DLLs for each PowerToy module (modules folder), and an executable (runner folder) that loads and manages those DLLs.
The settings window is a separate executable, contained in settings-ui folder. It utilizes a WebView to display an HTML-based settings window.
The common contains code for a static library with helper functions, used by both the runner and the PowerToys modules.