mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 01:54:51 +02:00
LCL: default theme text drawing remove offset from pushed text. Neither win32 nor Gtk2 do that. Needed for consequent painting of glyph and text.
git-svn-id: trunk@50895 -
This commit is contained in:
parent
997be6a69a
commit
a511b3e510
@ -2383,15 +2383,6 @@ begin
|
|||||||
Canvas.TextRect(R, R.Left, R.Top, S, TXTStyle);
|
Canvas.TextRect(R, R.Left, R.Top, S, TXTStyle);
|
||||||
Canvas.Font.Color := clBtnShadow;
|
Canvas.Font.Color := clBtnShadow;
|
||||||
OffsetRect(R, -1, -1);
|
OffsetRect(R, -1, -1);
|
||||||
end
|
|
||||||
else
|
|
||||||
begin
|
|
||||||
// if pushed, move text 1 pixel right and down
|
|
||||||
if IsPushed(Details) then
|
|
||||||
begin
|
|
||||||
Inc(R.Left, 1);
|
|
||||||
Inc(R.Top, 1);
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
if (Details.Element = teTreeview) and (Details.Part = TVP_TREEITEM) then
|
if (Details.Element = teTreeview) and (Details.Part = TVP_TREEITEM) then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user