My IconMenuItem uses a Drawable to provide the icon, so the drawable needs to know whether the background is black or white. I've been assuming the background is always white, because it was on all the devices I had tried so far; but I've just found that on fr955 it's black.
For DataFields, I can use DataField.getBackgroundColor() to find the background color, and then do the right thing. Here, I can't find anything that tells me the background color. The menu is the settings menu for a DataField; but even knowing the DataField's background color doesn't help, because on the fr955 Datafield background is white (by default), while the menu background is black.
Since I couldn't find an api to tell me, I was hoping there might be an entry in the personality library (and that devices too old to have a personality library would just have white backgrounds); but I don't see anything there either.
Do I just have to figure out for each device what color the menus are and hard code it (I can just use a dark.mss and light.mss and select the correct one in the jungle - but its going to be a pain to maintain). Also, I'm wondering if there's a device setting that might change the color, in which case even that won't work...