fabi1cazenave / qwerty-lafayette

QWERTY keyboard layout for French-speaking users
https://qwerty-lafayette.org/
106 stars 62 forks source link

MacOS keyboard input icon #123

Open nc-z opened 3 months ago

nc-z commented 3 months ago

I noticed that the icon MacOS uses for the keylayout file is inconsistent with the other keyboard layout icons; any chance of copying the FR icon from the built-in French layouts to this one, please?

Merci for the actual layout. I'm still adjusting but I like it quite a bit.

current icon french icon
iovantsaous commented 3 months ago

The icon you see is the generic keyboard icon. If you want another one, it seems that you have to generate a .icns file and place it in the same folder than the .keylayout file (but I never tried, and this may be outdated).

There something about that in the documentation for Ukulele App. I couldn't find an online version of the manual, but here is what I read (Ukulele 3.Manual, section 6.9.2) :

The difficulty that you may find with just installing the keyboard layout file is that you will get a generic keyboard icon in the input menu. If you want to have a more distinctive icon, such as a flag, you have two options. One is to create an icon file with the same file name as the keyboard layout file, but with the extension .icns rather than .keylayout. The other is to create a collection, in a special folder layout called a bundle.

nc-z commented 3 months ago

Placing an .icns file in the same folder and with the same name does work, thank you.

No .icns file will be ideal though, because the built-in icons:

I've attached my efforts at solving this: personally I settled on the pure text icon, because I hide the menu-bar selector anyway and it looks nicest in the little pop-up icon switcher.

I guess the only real way to truly solve this would be to figure out how to get MacOS to display the built-in French keyboard layout icon instead of trying to supply our own, but I don't know if that's possible.

The FR_Icon_NoFill and FR_Icon_Fill icons were provided by somebody else, but the other icons I declare to be in the WTFPL license, in the off chance the project wants to distribute one of them.

lafayette icons.zip