The color picker doesn't seem to restore values from the Ini file that have been saved unless it happens to match a color constant. I have set the Mode = csmExtendedMore and it saves the values fine like this in the INI:
Restoring just reads the AlphaColor back. It works with standard colors, but what is the point of having Mode = csmExtendedMore if it can't ever use the custom colors?
Are you saying that I must somehow add these custom colors into the collection for it to recognize it? That doesn't seem very user friendly. I would think that if it can write clBackground=#FFED9C4F to the ini file that it should be able to read it back again.
We have retested this here but we are unable to reproduce this. Can you perhaps send us a sample that is able to reproduce this issue so we can investigate this here.
I think I see the problem. If one first selects one of the standard colors, then overrides it with a custom color then it will show. However, it doesn't show the custom colors from the ini file. The code for this is the same as the above code as I have not changed it in the past 4 months.
We need to try and reproduce this under the same circumstances with the custom colors loaded.
In the past we were able to detect the issue, and it could be possible that there is an additional shortcoming, but as we are not able to reproduce this here it is important to have a sample that demonstrates this so we can point out the issue and find a solution.
I think the problem is ini file corruption with lost settings on my end. However I'm still not able to set a new custom color without first setting a standard color. The color boxes are null due to this corruption when they are initialized. Shouldn't one be able to go from no color setting to a custom color?
The ones that show correctly have color constants (clMaroon, clTeal), but the others are hex numeric values. Is there a problem with using StringToAlphaColor?
I think I know what the problem is. I wanted to save time and used the windows registry to create an ini file with colors for FMX, but that won't work even after I added the alpha channel. I have several color sets that match the VCL Styles. What I really need is a pixel copy and paste to speed up this process since it can't be done with this hack. Sorry for the trouble...