Hello,
In our XamRibbon we use the Office2013 theme. We've also recently (re)enabled our quick access toolbar (QAT). However, the font of the elements, until hover, is white-on-white background making them unreadable. We set some of the keys for the main ribbon colors to match the program color scheme, but how would we go about hard-defining these submenu item's foreground colors? There has been no luck in a style override of foreground or additional resources with the tags.
Hello Collin, By referencing the QAT's Submenu and it's elements (the ones that are not visible except when hovered) are you referring to the QAT dropdown and it's Common tools inside? If this is the case, I was not able to reproduce the behavior you have mentioned and it would be great if you could modify the sample I have attached so the issue is reproduced and send it back to me for further investigation. If your issue is actually reproduced in the attached sample, please provide me with more detailed information (a screenshot would do) on the functionality you are referring to. Looking forward to hearing from you.
The easiest way is probably a screenshot, as you can see the ribbon (and why the colors were set the way they were) and what it's doing to the QAT's font color! All that needs fixing is the font color back to black for the SubMenu on the QAT.
Hello Collin, Thank you for the screenshot you have provided. I have not been able to reproduce the QAT dropdown items' FontColor issue as you have shown in the image you have uploaded. It seems that you have used some additional styling for the XamRibbon in your application, so I am not able to test for the issue based on this. I have attached an image from the sample application from my previous reply, where the issue is not reproduced. Would you please modify the sample according to your functionality and send it back to me? Having this will help me further investigate this matter for you. Looking forward to hearing from you.
Hello Tacho,
I've updated your sample to show how it's changing the colors. It should be close enough to prove what's going on and how colors are changing. Please let me know if anything else is needed.
Hello Collin, Thank you for modifying the sample from my initial reply. The color changes are expected since the default Brushes have been overridden with the ones you have defined in the Ribbon's Resources. By modifying the following brushes, you should be able to set a fill color for the QAT common tools both by default and when hovered: <SolidColorBrush x:Key="{x:Static igRibbon:RibbonBrushKeys.ToolEnabledForegroundTextFillKey}"Color="Yellow" />
<SolidColorBrush x:Key="{x:Static igRibbon:RibbonBrushKeys.TextHottrackFillKey}"Color="Red" /> If you require any further assistance on the matter, please let me know.
Yes, I get that - that's how the primary colors are changed in the first place. My question was about keeping the main ribbon's overrides correct while adjusting them in the QAT to different presets.
I eventually found a workaround to this problem. I had to explicitly create a QAT in the XAML, and then in that QAT's resources I was able to re-redefine the style colors using those keys.
Might you have sample code for your workaround? I'm having a very similar problem. Thanks for any help you can provide.