Support using the Accent Color for cursorColor, selectionBackground, etc. #7979

Open
opened 2026-01-31 01:17:34 +00:00 by claunia · 2 comments
Owner

Originally created by @zadjii-msft on GitHub (May 6, 2020).

Can there be support for the Accent Color brushes, so if I were to set my cursor or selction to my Accent Color, as it changes, that change will be reflected in Windows Terminal?

So that might need to be it's own separate feature request. The cursor and the selection are drawn in DirectX down in TermControl, so they work differently than a lot of the things in this spec (which are all XAML elements).

For those, we'd need to accept something like "cursorColor": "accent". When we did that, CascadiaSettings would know that the string isn't a "#rrggbb" color, so it could look up the color when we're building the TerminalSettings to pass to the TermControl. However, after that point, if the user changes their accent color, that wouldn't be reflected dynamically in the Terminal, until the user manually refreshes their settings.

It's not a horrible idea, but probably something we should move to it's own thread for discussion, since I don't think it really fits in with a lot of the other things in this spec.

Originally posted by @zadjii-msft in https://github.com/microsoft/terminal/pull/5772#issuecomment-624908257

#6338 is related.

Originally created by @zadjii-msft on GitHub (May 6, 2020). > > > Can there be support for the Accent Color brushes, so if I were to set my cursor or selction to my Accent Color, as it changes, that change will be reflected in Windows Terminal? So that might need to be it's own separate feature request. The cursor and the selection are drawn in DirectX down in `TermControl`, so they work differently than a lot of the things in this spec (which are all XAML elements). For those, we'd need to accept something like `"cursorColor": "accent"`. When we did that, `CascadiaSettings` would know that the string isn't a "#rrggbb" color, so it could look up the color when we're building the `TerminalSettings` to pass to the `TermControl`. However, after that point, if the user changes their accent color, that wouldn't be reflected dynamically in the Terminal, until the user manually refreshes their settings. It's not a horrible idea, but probably something we should move to it's own thread for discussion, since I don't think it really fits in with a lot of the other things in this spec. _Originally posted by @zadjii-msft in https://github.com/microsoft/terminal/pull/5772#issuecomment-624908257_ #6338 is related.
Author
Owner

@mdtauk commented on GitHub (May 6, 2020):

When Xaml becomes a theming system for the App, any WinUI System brushes should become valid strings for setting colours in the console settings.

Perhaps you could use a prefix like xaml: xaml:AccentColor when referencing known colours.

@mdtauk commented on GitHub (May 6, 2020): When Xaml becomes a theming system for the App, any WinUI System brushes should become valid strings for setting colours in the console settings. Perhaps you could use a prefix like **xaml:** ``xaml:AccentColor`` when referencing known colours.
Author
Owner

@zadjii-msft commented on GitHub (Sep 9, 2022):

Note to future self: This should become the "ThemeColor can be used at the Control layer" thread. For unification of ThemeColor, SelectionColor, and generally the colors for a control. That would automatically get us accent support in color schemes.

@zadjii-msft commented on GitHub (Sep 9, 2022): Note to future self: This should become the "ThemeColor can be used at the Control layer" thread. For unification of `ThemeColor`, `SelectionColor`, and generally the colors for a control. That would automatically get us `accent` support in color schemes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7979