mirror of
https://github.com/felixfoertsch/EurKEY-macOS.git
synced 2026-04-17 15:09:32 +02:00
add first draft for a template icon
This commit is contained in:
BIN
EurKEY-macOS-icon/icon.afdesign
Normal file
BIN
EurKEY-macOS-icon/icon.afdesign
Normal file
Binary file not shown.
BIN
EurKEY-macOS-icon/icon.icns
Normal file
BIN
EurKEY-macOS-icon/icon.icns
Normal file
Binary file not shown.
1
EurKEY-macOS-icon/icon.svg
Normal file
1
EurKEY-macOS-icon/icon.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 25 KiB |
@@ -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>
|
||||
|
||||
BIN
EurKey-macOS.bundle/Contents/Resources/EurKEY v2.0.icns
Normal file
BIN
EurKey-macOS.bundle/Contents/Resources/EurKEY v2.0.icns
Normal file
Binary file not shown.
1780
EurKey-macOS.bundle/Contents/Resources/EurKEY v2.0.keylayout
Normal file
1780
EurKey-macOS.bundle/Contents/Resources/EurKEY v2.0.keylayout
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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>
|
||||
|
||||
51
README.md
51
README.md
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user