Hi everybody
First, thank you Circular and all other people working on those amazing component !
I would like to ask you a modification to the way themeManager works. It's very simple, here is my problem :
I have an app with BCbuttons. All BCbuttons are in panels, some have glyph and when i started to work with theme manager two problems appears :
1. the apply() func is not recursive in panel, that's why none of my BCbuttons where modified....
2. when applying a style, the assign() func remove glyphs....
the first point... OK I call apply(aPanel) for each panel in my form, that's not a big deal. (but, for experience I made apply() recursive with Tpanel easily)
the second point is critical. So here is the modification I propose :
1. add a 'preserve' boolean property to defaultThemeManager
2. in assign() func, I add the following modifications :
preserve := false;
if assigned(TBCButton(self).FBCThemeManager) then
preserve := TBCDefaultThemeManager(TBCButton(self).FBCThemeManager).Preserve;
if not preserve then begin
Glyph := TCustomBCButton(Source).Glyph;
FStaticButton := TCustomBCButton(Source).FStaticButton;
FDown := TCustomBCButton(Source).FDown;
end;
I had to add BCDefaultThemeManager to uses in implementation section
Do you think it's something good to add to your package ?
best regards