add first draft for a template icon

This commit is contained in:
Felix Förtsch
2024-03-18 11:30:53 +01:00
parent fe1909aa64
commit 5622739752
11 changed files with 1843 additions and 8 deletions

Binary file not shown.

BIN
EurKEY-macOS-icon/icon.icns Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -3,10 +3,21 @@
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>org.sil.ukelele.keyboardlayout.eurkey</string>
<string>de.felixfoertsch.keyboardlayout.EurKEY-macOS</string>
<key>CFBundleName</key>
<string>EurKEY-macOS</string>
<key>CFBundleVersion</key>
<string>1</string>
<string></string>
<key>KLInfo_EurKEY v2.0</key>
<dict>
<key>TICapsLockLanguageSwitchCapable</key>
<false/>
<key>TISIconIsTemplate</key>
<true/>
<key>TISInputSourceID</key>
<string>de.felixfoertsch.keyboardlayout.EurKEY-macOS.eurkeyv2.0</string>
<key>TISIntendedLanguage</key>
<string>en</string>
</dict>
</dict>
</plist>

File diff suppressed because it is too large Load Diff

View File

@@ -3,10 +3,10 @@
<plist version="1.0">
<dict>
<key>BuildVersion</key>
<string>1</string>
<string></string>
<key>ProjectName</key>
<string>EurKEY-macOS</string>
<key>SourceVersion</key>
<string>1</string>
<string></string>
</dict>
</plist>

View File

@@ -12,10 +12,53 @@ The keyboard layout should be compatible with the other ISO layouts typically av
- Download the `EurKEY.bundle` file.
- Copy the `EurKEY.bundle` file to `/Library/Keyboard Layouts/` (for global installation) or `~/Library/Keyboard Layouts/` (for user installation).
- Open System Settings > Keyboard > Input Sources <br><img src="eurkey-macos.eu/static/img/1-input-sources.png" width="300">
- Click the `+` button <br><img src="eurkey-macos.eu/static/img/2-add-layout.png" width="300">
- Add `EurKEY` from the list of available input sources <br><img src="eurkey-macos.eu/static/img/3-select-eurkey.png" width="300">
- Select `EurKEY` as the input method <br><img src="eurkey-macos.eu/static/img/4-select-input-method.png" width="300">
- Open System Settings > Keyboard > Input Sources <br><img src="eurkey-macos.eu/static/img/1-input-sources.png" width="300" alt="A screenshot showing the system preferences and where to find the edit button for the input sources.">
- Click the `+` button <br><img src="eurkey-macos.eu/static/img/2-add-layout.png" width="300" alt="A screenshot showing how to open the dialogue to add a new input source.">
- Add `EurKEY` from the list of available input sources <br><img src="eurkey-macos.eu/static/img/3-select-eurkey.png" width="300" alt="A screenshot showing where EurKEY is located in the input sources list.">
- Select `EurKEY` as the input method <br><img src="eurkey-macos.eu/static/img/4-select-input-method.png" width="300" alt="A screenshot showing the dropdown menu in the menu bar extra.">
## Notes on Ukelele and template icons
I have tried to configure a template icon for the bundle and stumbled onto behaviour that I consider a bug in Ukelele. I tried simply setting a template icon from the GUI using the checkbox, but it never saved it correctly. I had to manually edit `*.bundle/Info.plist` file and set the flag.
The structure of the Info.plist file is as follows:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>de.felixfoertsch.keyboardlayout.EurKEY-macOS</string>
→ Bundle Identifier
<key>CFBundleName</key>
<string>EurKEY-macOS</string>
→ Filename of the *.bundle file
<key>CFBundleVersion</key>
<string></string>
<key>KLInfo_EurKEY v2.0</key>
→ Name of the keyboard layout in the collection list
<dict>
<key>TICapsLockLanguageSwitchCapable</key>
<false/>
<key>TISIconIsTemplate</key>
<true/>
→ Set to true to use the icon as a template
<key>TISInputSourceID</key>
<string>de.felixfoertsch.keyboardlayout.EurKEY-macOS.eurkeyv2.0</string>
→ Identifier for the layout within the bundle, spaces are simply removed from the name.
→ The syntax is: reverse-prefix-notation.BundleIdentifier.LayoutName
<key>TISIntendedLanguage</key>
<string>en</string>
</dict>
</dict>
</plist>
```
## Changelog