[PR #8079] Fix the Settings UI Color Pickers #27091

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

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

State: closed
Merged: Yes


This fixes the bug where on a Color Scheme change, a portion of the
color pickers will be set to the correct color, but the other portion of
the color pickers will be set to the same colors that the first portion
was set to. It looks like performing a Clear and Append confuses the
Color Pickers when they raise their ColorChanged events in response.
Avoiding the Clear and Append by just changing the Color property
allows the Color Pickers to keep their existing data bound object and
only react to their Color property changing instead of having to deal
with the whole object being swept out from under them and being given a
new one.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8079 **State:** closed **Merged:** Yes --- This fixes the bug where on a Color Scheme change, a portion of the color pickers will be set to the correct color, but the other portion of the color pickers will be set to the same colors that the first portion was set to. It looks like performing a `Clear` and `Append` confuses the Color Pickers when they raise their `ColorChanged` events in response. Avoiding the `Clear` and `Append` by just changing the `Color` property allows the Color Pickers to keep their existing data bound object and only react to their Color property changing instead of having to deal with the whole object being swept out from under them and being given a new one.
claunia added the pull-request label 2026-01-31 09:19:56 +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#27091