Re: Enabling persistence of custom colors in answer color
Posted: Sun Aug 18, 2013 1:37 am
OK, that's what I've done, however, I've implemented it in a way that allows the colorDialogColors on other platforms to have a data structure that mirrors the colors lists for the platform.
Windows is just a simple ordered list of 16 lines of colors. The line number maps to the place in the dialog the color shows up. It could be a numerically indexed array but it's probably not necessary.
Mac (when the dialog is implemented with Cocoa) could have a multi-dimensional array:
colorDialogColors[<color list name>][<index 1...n>]([color name] & [color])
That would allow you to add multiple color lists.
Windows is just a simple ordered list of 16 lines of colors. The line number maps to the place in the dialog the color shows up. It could be a numerically indexed array but it's probably not necessary.
Mac (when the dialog is implemented with Cocoa) could have a multi-dimensional array:
colorDialogColors[<color list name>][<index 1...n>]([color name] & [color])
That would allow you to add multiple color lists.