diff --git a/uppsrc/CtrlLib/Button.cpp b/uppsrc/CtrlLib/Button.cpp index 672ba0dc6..79d86bd85 100644 --- a/uppsrc/CtrlLib/Button.cpp +++ b/uppsrc/CtrlLib/Button.cpp @@ -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) diff --git a/uppsrc/CtrlLib/Ch.cpp b/uppsrc/CtrlLib/Ch.cpp index 5372e4a45..a2f447eb6 100644 --- a/uppsrc/CtrlLib/Ch.cpp +++ b/uppsrc/CtrlLib/Ch.cpp @@ -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)); } diff --git a/uppsrc/CtrlLib/PushCtrl.h b/uppsrc/CtrlLib/PushCtrl.h index 1368f5e85..9e257c029 100644 --- a/uppsrc/CtrlLib/PushCtrl.h +++ b/uppsrc/CtrlLib/PushCtrl.h @@ -139,8 +139,8 @@ public: Button::Style inc; Button::Style dec; int width; - int over = 0; - bool onsides = false; + int over; + bool onsides; }; private: