mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:09:32 +02:00
LCL: Fix font.color on ttItemHot elements on Windows Vista+. Issue #27015, patch from Andrey Zubarev.
git-svn-id: trunk@46980 -
This commit is contained in:
parent
b79fe8fe8d
commit
4b33596e10
@ -381,7 +381,12 @@ begin
|
|||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
begin
|
||||||
|
if (Details.Element = teTreeview) and (Details.Part = TVP_TREEITEM) and (Details.State = TREIS_HOT) then
|
||||||
|
Details.State := TREIS_NORMAL;
|
||||||
|
|
||||||
inherited;
|
inherited;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TWin32ThemeServices.DrawIcon(DC: HDC; Details: TThemedElementDetails;
|
procedure TWin32ThemeServices.DrawIcon(DC: HDC; Details: TThemedElementDetails;
|
||||||
@ -517,7 +522,7 @@ var
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if NotImplementedInXP and (WindowsVersion < wvVista) then
|
if (NotImplementedInXP and (WindowsVersion < wvVista))or not ThemesEnabled then
|
||||||
begin
|
begin
|
||||||
FontUnderlineSave:=TCanvas(ACanvas).Font.Underline;
|
FontUnderlineSave:=TCanvas(ACanvas).Font.Underline;
|
||||||
if (Details.Element = teTreeview) and (Details.Part = TVP_TREEITEM) and (Details.State = TREIS_HOT) then
|
if (Details.Element = teTreeview) and (Details.Part = TVP_TREEITEM) and (Details.State = TREIS_HOT) then
|
||||||
|
Loading…
Reference in New Issue
Block a user