Skip to content

Change Hover Color for all Controls #6369

Answered by maxkatz6
ShrutiJaiswal1494 asked this question in Q&A
Discussion options

You must be logged in to vote

There is a file https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Accents/AccentColors.xaml with accent colors. You can redefine them or replace whole file.

And there are specific controls color resources https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Accents/FluentControlResourcesDark.xaml . You also can redefine them or replace whole file.

By redefining I mean creating your own style-resources file with putting brushes with the same key but your color value in there. This approach is recommended and simpler, but there might be issues with some specific controls (new value can be ignored).

By replacing whole file I mean replacing…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@ShrutiJaiswal1494
Comment options

@maxkatz6
Comment options

@ShrutiJaiswal1494
Comment options

@maxkatz6
Comment options

@ShrutiJaiswal1494
Comment options

Answer selected by maxkatz6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants