This is actually an issue with all dark skins. I had the same issue with virtual tree control and I fixed it for dark skins by calling:
Winapi.UxTheme.SetWindowTheme(Handle, PWideChar(‘DarkMode_Explorer’), nil);
Handle is the control handle. For light skins the theme is ‘explorer’.
Note! This works only since Windows 10 build 17763. You need to check it.
if DefaultManager.Active and CheckWin32Version(10) and (TOSVersion.Build >= 17763) then
begin
if ColorIsDark(DefaultManager.GetActiveEditColor) then
AVirtualTree.WindowTheme := 'DarkMode_Explorer'
else
AVirtualTree.WindowTheme := 'explorer';
end;
-
This reply was modified 1 year ago by Lasse.