CtrlLib: Chameleon improvements

git-svn-id: svn://ultimatepp.org/upp/trunk@14000 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-02-13 10:24:08 +00:00
parent 7f777f7726
commit 8ccc1130e2
3 changed files with 7 additions and 3 deletions

View file

@ -454,6 +454,8 @@ CH_STYLE(SpinButtons, Style, StyleDefault)
CtrlsImageLook(inc.look, CtrlsImg::I_EB, CtrlsImg::SpU(), inc.monocolor);
CtrlsImageLook(dec.look, CtrlsImg::I_EB, CtrlsImg::SpD(), dec.monocolor);
width = Zx(12);
over = 0;
onsides = false;
}
CH_STYLE(SpinButtons, Style, StyleOnSides)

View file

@ -313,7 +313,9 @@ void ChSynthetic(Image *button100x100, Color *text, bool macos)
{
EditField::Style& s = EditField::StyleDefault().Write();
s.activeedge = true;
s.edge[i] = Espots(MakeButton(roundness2, i == CTRL_DISABLED ? SColorFace() : SColorPaper(), lw, ink));
s.edge[i] = Espots(MakeButton(roundness2,
i == CTRL_DISABLED ? SColorFace() : SColorPaper(), lw,
i == CTRL_PRESSED ? SColorHighlight() : ink));
if(i == 0)
s.coloredge = Espots(MakeButton(roundness2, Black(), DPI(2), Null));
}

View file

@ -139,8 +139,8 @@ public:
Button::Style inc;
Button::Style dec;
int width;
int over = 0;
bool onsides = false;
int over;
bool onsides;
};
private: