#include "Styler.h" #define IMAGECLASS StylerCtrlsImg #define IMAGEFILE #include void ColorizeIml(Iml& target, Iml& source, const Color& c, int alpha) { for(int i = 0; i < target.GetCount(); i++) { int q = source.Find(target.GetId(i)); if(q >= 0) { Image m = Colorize(source.Get(q), c, alpha); target.Set(i, m); } } } void RefreshGlobalStyles() { ChFinish(); } void RefreshLayoutDeepAll() { Vector vc = Ctrl::GetTopWindows(); for(int i = 0; i < vc.GetCount(); i++) vc[i]->RefreshLayoutDeep(); } void StylerCtrl::ColorizedSkin() { Color c = ~mcl; int blnd = ~bl; Color fg = ~fgcl; Color bg = ~bgcl; ChStdSkin(); ColorizeIml(CtrlsImg::Iml(), StylerCtrlsImg::Iml(), c, 255); if(Grayscale(fg)