Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS keyboard input icon #123

Open
nc-z opened this issue May 23, 2024 · 2 comments
Open

MacOS keyboard input icon #123

nc-z opened this issue May 23, 2024 · 2 comments

Comments

@nc-z
Copy link

nc-z commented May 23, 2024

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
Copy link

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
Copy link
Author

nc-z commented Jun 5, 2024

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:

  • revert to background-less pure text when switching layouts with ⌃-Space in an input box (e.g. Safari address bar)
  • automatically invert in the same popup when selected
  • have a consistent rectangular background shape that I can't replicate because my .icns gets shrunk
  • sometimes the background changes to a border-only rounded rectangle as shown in the first post
  • and for good measure, it's also occasionally inverted.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants