FNC Ribbon disabled elements

Hello, 


could you assist in changing the appearance of disabled elements in toolbars? Currently they have a dark gray background (VCL). I would like them to be some kind of grayed out, optionally making the images black and white, this would give a very professional look.

I have not yet tried how it works with webcore, here also I would love to have disabled things faded instead of "Highlighted" by the dark background.

Also there is a strange behaviour: If I set some of the toolbars invisible the remaining are compacted. 

Thanks in advance
Michael

Hi,


Each button in the toolbar has an option to specify bitmaps for normal, hover and disabled state. So you make the original bitmaps, black and white and then specify them for the DisabledBitmaps property. If you have a Large button layout, you can add them to the LargeLayoutDisabledBitmaps property. 

For the appearance, the DisabledFill/DisabledStroke under ButtonAppearance can be used to style the button when the button is disabled. By default this is a grey color.

Can you specify more details on the behaviour of setting toolbars invisible?

Hi,


thanks, works great. Is there a way to set a disabled color for labels? 

Details on the behaviour: If I set some toolbars in a tab toinvisible, the remaining tabs are minimized as if there was not enough space.

Hi,


Actually the properties are not exposed by default, we'll look into this, but you can use the code below to change the font color in disabled state:




type
  TTMSFNCRibbonToolBarButtonOpen = class(TTMSFNCRibbonToolBarButton);


begin
  TTMSFNCRibbonToolBarButtonOpen(btn).DisabledFontColor := gcRed;
end;