I tried to transfer a XML file into a Panorama X database. The particular source is the “SyncedRules.plist” file from Mail.app.
Mail rules can mark mails with a given color when certain criteria are met.
You choose those colors in the Mail preferences > Rules dialog in a popup menu with 6 Apple Highlight Colors and, additionally, the Apple Color Picker.
The chosen colors are saved in the “SyncedRules.plist” XML file as 7- or 8-digit numbers.
Here is a table of my findings:
- 9158119 light blue
- 10209791 blue
- 13095131 grey
- 13235369 green
- 14136549 violet
- 14819865 violet
- 16750738 red
- 16763531 orange
- 16773531 yellow
I would like to use those numbers directly to display the color in a rectangle object on my form.
Has anyone knowledge about the color definition that Apple is using here — and how to translate it into Panorama X’s color system?
I’d like to understand those numbers and would prefer using a conversion formula instead of manually researching every single RGB value from the Color Picker in Mail.