I could be wrong, but I'm not sure the THTmlTreeView SelectionFontColor is being set properly for some VCL Styles. Some example shown below have white text on a light background which is hard to see. However, if I manually set the color of the selected text, it looks right (black on the light background), for example:
treeView1.SelectionFontColor := TStyleManager.ActiveStyle.GetSystemColor(clHighlightText);
These are all based on the focus color of the selected node...
Try it with VCL Styles of:
Iceberg Classico (white text on Gold background)
Copper (white text on light gray background)
Carbon (white Text on a dark blue background - good look)
However if I use the above mentioned manual setting for the SelectionFontColor we get this:
Iceberg Classico (black text on Gold background)
Copper (Black text on light gray background)
Carbon (Black Text on a dark blue background - Not a good look)
So, manually setting it to clHighlightText might not be the right choice since a normal TTreeView uses better colors, but I haven't done much investigation on that:
This is a standard TTreeView:
Iceberg Classico (black text on light gray background)
Copper (Black text on light gray background)
Carbon (White Text on a darkgray background)
Thoughts? Just thinking you might want to double check your settings, that's all. It would be nice to be consistent with the standard TTreeView colors is my thinking.