I used Fluent XAML Theme Editor app to generate theme resources for my app.
My dark color scheme is black/grey with orange accent.
When I set accent color to green in Windows 10 Settings (see image below), this accent color comes through in some places.
As green and orange don't go well together, this looks really bad. How can I ensure that this does not happen?
Other similar questions on SO have answers that do NOT work for me (please do not mark as duplicate).
This is what I have done.
In Resource Dictionary I have defined orange accents for my "Dark" theme. This was generated by Fluent XAML Theme Editor (both accent and overrides are shades of orange):
<Windows10version1809:ColorPaletteResources Accent="#FFCC4D11"...
<!-- Override system generated accent colors -->
<Color x:Key="SystemAccentColorDark1">#FFD4632D</Color>
<Color x:Key="SystemAccentColorDark2">#FFDC7949</Color>
<Color x:Key="SystemAccentColorDark3">#FFE58E66</Color>
<Color x:Key="SystemAccentColorLight1">#FFB93E0E</Color>
<Color x:Key="SystemAccentColorLight2">#FFA62F0A</Color>
<Color x:Key="SystemAccentColorLight3">#FF932107</Color>
I have also added this as suggested elsewhere on SO:
<SolidColorBrush x:Key="SystemControlHighlightAccentBrush" Color="#FFCC4D11" />
However, none of this works and Windows Settings green comes through anyway. For example, an accent button appears green on mouse hover. Green also appears in combo boxes and radio buttons on mouse hover.
The button is defined like this:
<Button Style="{StaticResource AccentButtonStyle}" Content="Start"/>
This is what it looks like without and with hover. You don't need to be a graphic designer to know this is a bad look. I would like a different shade of orange to appear on hover. These shades are defined in the resource dictionary as SystemAccentColorDark1 - SystemAccentColorLight3, but they seem to be ignored for some reason.
How can I enforce my accent colors consistently? Obviously I do not want to have to re-style each control, I just want the colors from the resource dictionary to be used consistently.
UPDATE
System accent color is coming through even in Fluent XAML Theme Editor App itself, although not for the "Accent Button" but for "Check Box" and some other controls. See image where lime highlight is visible when mouse hovers over check box.


