Problem with a colored icon in colorful themes

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 10 months ago by Patrick Neubauer
Version: 22.1.0
Platform: .NET 5.0
Environment: Windows 10 (64-bit)
Avatar

Hi there,

we have a problem with colored icons in the quick access toolbar when using a colorful theme.
When using a colorful theme the icon is always displayed white.

Is this by design?
Is there a way to get it to display the colored icon in the colorful theme?
I already tried using another imageprovider but this didn´t work.

Best Regards, 
Patrick

Comments (3)

Posted 10 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Patrick,

In a Colorful theme where the title bar has an intense colored background, normal button icons in the title bar won't show up properly since the contrast would be very poor with the background.  That's why Office apps make the icons white monochrome when in the title bar (and when the QAT is in the title bar), so that there is proper contrast and they are distinguishable.

Can you describe more about your scenario, and why you might not want this important accessbility behavior?


Actipro Software Support

Posted 10 months ago by Patrick Neubauer
Avatar

Hi, 

we would like to show our colored icon if the undo will affect something that isn´t currenty open. 
Is there some kind of way to get it to show the colored icon regardless of the selected theme?

Answer - Posted 10 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Patrick,

Our ribbon button templates set the DynamicImage control's UseMonochrome property to true if the attached ribbon:RibbonControlService.UseMonochromeImage property on the containing button control is true.  There are triggers that kick all that in.  The reason the property is on the control instead of the image source is most of the time, the theme and containing control (e.g. button) location determine its value.

Here's an example of overriding it:

<ribbon:Ribbon.QuickAccessToolBarItems>
	<ribbon:Button Id="Save" Command="ApplicationCommands.Save" ribbon:RibbonControlService.UseMonochromeImage="False" />
</ribbon:Ribbon.QuickAccessToolBarItems>


Actipro Software Support

The latest build of this product (v22.1.4) was released 23 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.