benruehl / adonis-ui

Lightweight UI toolkit for WPF applications offering classic but enhanced windows visuals
https://benruehl.github.io/adonis-ui/
MIT License
1.73k stars 145 forks source link

Possible to override accent color for a specific control or control type? #171

Open rgwood opened 2 years ago

rgwood commented 2 years ago

Hi, I have a question about theming in Adonis UI. The docs show how to override accent color in a ResourceDictionary like this:

<Color x:Key="{x:Static adonisUi:Colors.AccentColor}">#0BAC08</Color>

That works well but it gets applied to everything. Is there a way to specify accent color for a specific control or type of control?

For some additional context, my accent color works well in most situations but it's a little excessive for the border around a focused TextBox. I'd like to revert to the default accent color (or another color) in that case.

P.S. AdonisUI is amazing and super helpful. Thanks for making it!