This is not necessarily the current version of this TIP.
|Title:||Add Named Colors to Tk|
|Version:||$Revision: 1.4 $|
|Author:||Damon Courtney <damon at unreality dot com>|
|Created:||Wednesday, 03 September 2003|
This TIP proposes the addition of a color command at the Tk level to allow developers to create named colors as they can already do with both fonts and images.
Named fonts and images go a long way toward making Tk able to modify a lot of options on a global scale simply by adjusting a single item. Tk already simulates some version of named colors on Windows with the use of values like SystemButtonFace and SystemWindowFrame. These color names map to values pre-defined in Windows. On UNIX, we have to kind of fake these things around.
With the addition of named colors, we can simply define default colors in UNIX that correspond to existing named colors on Windows. So, we could create SystemButtonFace as a named color on UNIX, and any Windows program using those color names would port to UNIX without a change.