[PR #7609] Update ColorScheme with Json Serializer and color table API #26957

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

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

State: closed
Merged: Yes


Add ToJson() to the ConversionTraits in JsonUtils. This can be used
to serialize settings objects into JSON.

As a proof of concept, ToJson and UpdateJson were added to
ColorScheme.

Getters and setters for members and colors in the color table were added
and polished.

References

#1564 - Settings UI

ColorScheme is a particularly easy example of serialization because it
has no fallback.

Added a few tests for JSON serializers.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/7609 **State:** closed **Merged:** Yes --- Add `ToJson()` to the `ConversionTrait`s in JsonUtils. This can be used to serialize settings objects into JSON. As a proof of concept, `ToJson` and `UpdateJson` were added to `ColorScheme`. Getters and setters for members and colors in the color table were added and polished. ## References #1564 - Settings UI `ColorScheme` is a particularly easy example of serialization because it has _no fallback_. Added a few tests for JSON serializers.
claunia added the pull-request label 2026-01-31 09:19:07 +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#26957