Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'alternate keyboard layout images?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
alternate keyboard layout images?
Authored by: tangaloor on Nov 19, '01 07:21:17PM

the only problem with this is that when i do it, i have to have a US flag on my menubar all the time. not a bad thing in and of itself, but i was thinking a canadian flag (or batz maru!) might be a bit more appropriate given my circumstances (and the canadian-csa layout is definitely not an option). anyway, is there a way to edit those li'l layout pix? (looked through the prefpane package contents but no image files for those flags found; the keymapping files aren't transparent re: images, either...)



[ Reply to This | # ]
alternate keyboard layout images?
Authored by: _merlin on Nov 19, '01 08:29:53PM

The images are stored as kcs#, kcs4 and kcs8 resources in a .rsrc file somewhere in the HIToolbox framework, I think. Happy Hacking!



[ Reply to This | # ]
Keyboard icon help
Authored by: HandyMac on Nov 20, '01 11:46:58AM

A useful ResExcellence page on keyboard icons:
http://www.resexcellence.com//11-16-99.shtml

Some notes from a friend on how the icons are coded (and how to
change them in ASCII rather than using a graphic editor):

Here is the list of flag icon colour codes for the 'kcs4' resource:

0 White
1 Yellow
2 Orange
3 Red
4 Magenta
5 Purple
6 Blue
7 Cyan
8 Green
9 Dark Green
A Dark Brown
B Brown
C Light Grey
D Mid Grey
E Dark Grey
F Black

When you open the resource, you'll see something like:

0000000000000000
0000000000000000
0000000000000000
0000000000000000
0000000000000000
6666666633333333
6060606600000000
6666666633333333
6606060600000000
6666666633333333
6060606600000000
6666666633333333
0000000000000000
3333333333333333
0000000000000000
3333333333333333

This is for the US flag. Ignore the first five lines of 0s, the rest is the
flag. You can replace any pair of hexadecimal numbers (= one ASCII character)
with any other pair, e.g. replacing 33 with 31 changes 2 red pixels to a red
and a yellow. For example, for my 'US - No CapsLock' keyboard, I added a green
block in the lower left corner:

6666666633333333
6060606600000000
6666666633333333
6606060600000000
6666666633333333
6060606600000000
6666666633333333
0000000000000000
3333333333333333
6666000000000000
6666333333333333

Here's a Confederate flag:

6663333333333666
6066633333366606
6660666336660666
3366606666066633
3333666776663333
3333666776663333
3366606666066633
6660666336660666
6066633333366606
6663333333333666
6333333333333336



[ Reply to This | # ]
alternate keyboard layout images?
Authored by: freeandunmuzzled on Nov 21, '01 03:39:59AM

such a shame it doesn't display the cute dingbats asterisk key icon!



[ Reply to This | # ]