mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 15:20:49 +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
|
||||
else
|
||||
begin
|
||||
if (Details.Element = teTreeview) and (Details.Part = TVP_TREEITEM) and (Details.State = TREIS_HOT) then
|
||||
Details.State := TREIS_NORMAL;
|
||||
|
||||
inherited;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TWin32ThemeServices.DrawIcon(DC: HDC; Details: TThemedElementDetails;
|
||||
@ -517,7 +522,7 @@ var
|
||||
end;
|
||||
|
||||
begin
|
||||
if NotImplementedInXP and (WindowsVersion < wvVista) then
|
||||
if (NotImplementedInXP and (WindowsVersion < wvVista))or not ThemesEnabled then
|
||||
begin
|
||||
FontUnderlineSave:=TCanvas(ACanvas).Font.Underline;
|
||||
if (Details.Element = teTreeview) and (Details.Part = TVP_TREEITEM) and (Details.State = TREIS_HOT) then
|
||||
|
Loading…
Reference in New Issue
Block a user