[PR #14188] Use the Windows.UI.ViewManagement APIs to get the accent color #29993

Open
opened 2026-01-31 09:38:03 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/14188

State: closed
Merged: No


Judging by the source (which is admittedly rather complex), the accent color value returned by this API is the same one that DWM stores in the registry. Doing it this way obviates the need for us to do a themed resource map lookup, pass a XAML resource map into MTSM, and dump somebody's secret registry keys into the open.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/14188 **State:** closed **Merged:** No --- Judging by the source (which is admittedly rather complex), the accent color value returned by this API is the same one that DWM stores in the registry. Doing it this way obviates the need for us to do a themed resource map lookup, pass a XAML resource map into MTSM, and dump somebody's secret registry keys into the open.
claunia added the pull-request label 2026-01-31 09:38:03 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29993