From 75740d0375ed95be49a49c18f41d1d9560cd36b1 Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 12 Mar 2020 16:05:57 +0000 Subject: [PATCH] CtrlLib: Ch Classic cosmetics git-svn-id: svn://ultimatepp.org/upp/trunk@14159 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/Ch.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/uppsrc/CtrlLib/Ch.cpp b/uppsrc/CtrlLib/Ch.cpp index bb6e86139..66eca8705 100644 --- a/uppsrc/CtrlLib/Ch.cpp +++ b/uppsrc/CtrlLib/Ch.cpp @@ -182,10 +182,17 @@ void ChClassicSkin() } t = iw; SetHotSpots(t, Point(2, 2)); - s.first[i] = s.last[i] = s.both[i] = s.normal[i] = t; + s.first[i] = s.both[i] = t; + ImageDraw iw2(isz); + iw2.DrawImage(0, 0, t); + if(i == CTRL_PRESSED) // the active tab + iw2.DrawRect(0, isz.cy - 1, 1, 1, wg); + t = iw2; + SetHotSpots(t, Point(2, 2)); + s.last[i] = s.normal[i] = t; s.margin = 0; - s.sel = Rect(0, DPI(1), 0, DPI(1)); - s.extendleft = DPI(2); + s.sel = Rect(0, 2, 0, 2); + s.extendleft = 2; s.text_color[i] = SColorText(); } // static int adj[] = { 10, 80, -5, -10 };