Quote:
What if user wants to attach an icon that is unrelated to entities to a cell that might also have an entity icon because it has some entity-info (Note, Link, Association)?
|
I have tested having an "icon with text" rule created by EM plus a manually-created "composed with text" rule for 2+ other icons. The key is "2+" (not "1") other icons.
If only 1 composed icon is used, then the Library View only shows the composed single icon, and not also the EM icon. Add a 2nd icon to the composed rule (tell it there are multiple icons), and all 3 appear. Telling it that multiple icons exist force it to show all available icons regardless of the source of each icon.
However, Calibre Look & Feel does not update the Library View icons properly when such a rule is first created, so
a restart of Calibre is required for everything to show properly (i.e., multiple icons assumed to exist): 2 icons (even if 1 is transparent) from the composed rule, and 1 icon from the EM rule. 3 total icons appear.
So, it would seem that EM should do nothing related to composed icon rules since the user can do anything they want to add additional icons as long as they specify at least 2 icons.
This would be easy to do by adapting the current 'icon with text' function for colors with a special #abcdef color. Emphasis on the 'special'. As in 'unique' to the Library for color rules. Just like 'entity_reserved.png' tells EM that it created a particular rule, there must be a 'reserved color' that each user chooses.
Example: they like and already use in other color rules the RGC color 230/20/220 which is html code #e614dc. They could simply increment the ending RGC color digits to make 231/21/221 which is html code #e715dd, and set that as their "unique" EM color. I cannot see the difference, but the html codes that are physically stored within the rules will be different.
I created a text color rule that already had a 2-icon (1 was transparent) composed with text rule plus an EM icon with text rule, and all of it displayed properly.
I am going to move forward with the Column Color Rules concept described above for EM.
DaltonST