Qt: use clBtnShadow and clBtnHighlight in TQtWidgetSet.DrawEdge(). issue #27278

git-svn-id: trunk@47329 -
This commit is contained in:
zeljko 2015-01-10 18:40:04 +00:00
parent f2491ead05
commit 60baaafb4a

View File

@ -1078,8 +1078,8 @@ begin
Dec(ClientRect.Bottom, 1); Dec(ClientRect.Bottom, 1);
QtDC.save; QtDC.save;
try try
ColorDark := ColorToRGB(cl3DDkShadow); ColorDark := ColorToRGB(clBtnShadow);
ColorLight := ColorToRGB(cl3DLight); ColorLight := ColorToRGB(clBtnHighlight);
if grfFlags and BF_FLAT <> 0 then if grfFlags and BF_FLAT <> 0 then
ColorLight := clSilver; ColorLight := clSilver;
if grfFlags and BF_MONO <> 0 then if grfFlags and BF_MONO <> 0 then
@ -1093,7 +1093,7 @@ begin
InflateRect(ClientRect, -1, -1); InflateRect(ClientRect, -1, -1);
if grfFlags and BF_MONO = 0 then if grfFlags and BF_MONO = 0 then
begin begin
ColorLight := ColorToRGB(clBtnHiLight); ColorLight := ColorToRGB(clBtnHighlight);
ColorDark := ColorToRGB(clBtnShadow); ColorDark := ColorToRGB(clBtnShadow);
end; end;
if Edge and (BDR_SUNKENINNER or BDR_RAISEDINNER) <> 0 then if Edge and (BDR_SUNKENINNER or BDR_RAISEDINNER) <> 0 then