mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
44 lines
877 B
C++
44 lines
877 B
C++
#ifndef _Styler_Styler_h
|
|
#define _Styler_Styler_h
|
|
|
|
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
#define IMAGECLASS StylerCtrlsImg
|
|
#define IMAGEFILE <Styler/StylerCtrls.iml>
|
|
#include <Draw/iml_header.h>
|
|
|
|
void ColorizeIml(Iml& target, Iml& source, const Color& c, int alpha = 100);
|
|
void RefreshGlobalStyles();
|
|
void RefreshLayoutDeepAll();
|
|
|
|
#define LAYOUTFILE <Styler/Styler.lay>
|
|
#include <CtrlCore/lay.h>
|
|
|
|
class StylerCtrl : public WithStylerLay<ParentCtrl> {
|
|
public:
|
|
typedef StylerCtrl CLASSNAME;
|
|
StylerCtrl();
|
|
|
|
virtual void Updated();
|
|
void InvertColors();
|
|
|
|
protected:
|
|
void ColorizedSkin();
|
|
void ColorAction();
|
|
};
|
|
|
|
class ChamStyleCtrl : public WithChamStyleLay<ParentCtrl> {
|
|
public:
|
|
typedef ChamStyleCtrl CLASSNAME;
|
|
ChamStyleCtrl();
|
|
|
|
void Reload();
|
|
virtual void Updated();
|
|
protected:
|
|
void ColorAction();
|
|
};
|
|
|
|
#endif
|
|
|