> -----Original Message----- > From: Ben Combee [mailto:[EMAIL PROTECTED]] > Sent: Friday, 7 December 2001 3:08 PM > To: Palm Developer Forum > Subject: Re: Back to launcher colour scheme in dbg and prod ROMs. > > > Modifying the color tables is done through the > > UIColorGetTableEntryIndex, UIColorGetTableEntryRGB, and > > UIColorSetTableEntry APIs. > > This does not affect launcher colour scheme. > When I return back to launcher, everything > gets back to default. What I was referring to, > was a standard PalmOS application to set > auncher (default) colours. > It is a good idea to have it.
The system reloads the color table when it switches applications. This is why your modifications don't affect the launcher. While not documented (and therefore not supported), inspection of the Palm OS source shows that the system does look in the Saved Preference database for a pref of type sysFileCSystem with ID sysResIDPrefUIColorTableBase + depth. If this pref is found, it reloads the color table from there. Otherwise, it uses a hardcoded system resource. The table is just an array of color table entries, one for each possible setting in the system. If the table in the prefs has too few or too many entries, it is ignored. This only applies to current systems. Since this isn't documented knowledge, it can and likely will change in the future. You only safely can modify your own application's color table -- setting up this preference is "high mojo". -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
