What are the standard notification colors in 11.10? I'm writing an app with an AppIndicator, and I'd like it to match the desktop color scheme.
Is there anywhere this stuff is documented? I checked developer.ubuntu.com, but without any luck.
Assuming that your real question is given in your comment (and assuming python since you have added a py-appindicator tag): " 1.) How do I get the colors from the global menu? 2.) And how do I draw the colors onto the image for my appindicator? "
Your second question is actually composed of two questions: 2.a) How do I draw an image? 2.b) How to define an Appindicator icon theme?
I have no answer to 2.b). The Appindicator is either extremely bad documented, or the documentation is extremely well hidden. Some not so useful stuff can be found here and here. You probably have to run
To 1.): To get the colors of a gtk widget programmatically for use in cairo (to draw them later) you can use something like this (for a menu):
This gives you the forground and background style for different states. (There are probably better ways, but this should still work...)
Note that the bright blue or bright red do not seem to be part of the standard menu colors. I could not find out where they come from.
Note also that if the gtk theme changes but you leave your icons as they are, they will stand out since they then might have the wrong colors.
To 2.a) You can use cairo to draw images to various surfaces (png, pdf, svg, gtk widgets, ...). Here is an example that draws some rectangles onto png surfaces and saves the files in your current working directory. Each rectangle has the foreground color drawn onto the background color of the given state:
A last note: you probably want to leave the background of your icons transparent, so you have one color less to worry about.