to extend the TTaskDialog by a new property TitleColor or, better, TitleFont
Not sure it is good. Looks like a first step in a downhill road.
1) Would take some plumbing, like check if it is customized or not.
property XXXX ..... stored non-default-funciton;For colour you at least can compare with special "virtual" values like clWindow, but comparing the whole TFont is more ocmplex.
And then developers would be obliged to make custom engine to apply Qt/GTK/FTK/whatever-toolkit color scheme? They would not. They would fix one color for default theme and make the dialog not response to user changes.
2) Also, what is special in the Title? Can we be sure color themes might only make Title look bad and would neve harm other elements colors? We may end up exposing ALL the elemets colors, almost implement a theming for one special control? From my Linux experience - choosing/making color themes separately for every toolkit out there was always a hassle, copared to Windows uniformity.
3) ...and then, those color properties would be ignored on Windows, which renders by its internal native ways.
TTaskDialog now tries to hide methods and properties, that are Windows-only, that are not re-implemented in pure LCL.
If you would expose UNIX-only properties, should we then add Windows-only properties too? And eventually made TTaskDialog into a mi of UIX-only and Windows-only properties?
Probably, but this is a coloring game, on some color scheme it will be bad
Can you look into any TColor protpety and check through "virtual" clXXXX values, like clText, clWindow, etc. With different themes.
Is there any special value that is consistently distinct from window background, so could be assumed for title text?
-----------
I am currently trying it on Windows, changing colour scheme, and it seems that TTaskDialog jsut ignores all those and has it's own fixed colours...