Исправить иконку источника ввода

This commit is contained in:
2026-07-29 15:40:40 +06:00
parent 0180b30ce3
commit 45ba41416a
4 changed files with 17 additions and 12 deletions
+3 -3
View File
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.2.0</string>
<string>0.2.1</string>
<key>CFBundleVersion</key>
<string>2</string>
<string>3</string>
<key>InputMethodConnectionName</key>
<string>com.romanv.inputmethod.WhisperKey_Connection</string>
<key>InputMethodServerControllerClass</key>
@@ -40,6 +40,6 @@
<string>Latn</string>
</array>
<key>tsInputMethodIconFileKey</key>
<string>WhisperKeyInputTemplate.tiff</string>
<string>WhisperKeyInputTemplateV2.tiff</string>
</dict>
</plist>
+12 -8
View File
@@ -1,10 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path
fill="#000"
d="M16 3a6 6 0 0 0-6 6v7a6 6 0 0 0 12 0V9a6 6 0 0 0-6-6Z"
/>
<path
fill="#000"
d="M6.5 14a1.5 1.5 0 0 1 3 0v2a6.5 6.5 0 0 0 13 0v-2a1.5 1.5 0 0 1 3 0v2a9.5 9.5 0 0 1-8 9.38V28h4a1.5 1.5 0 0 1 0 3h-11a1.5 1.5 0 0 1 0-3h4v-2.62A9.5 9.5 0 0 1 6.5 16v-2Z"
/>
<g
fill="none"
stroke="#000"
stroke-width="3"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect x="11" y="3.5" width="10" height="17" rx="5"/>
<path d="M7.5 15.5v.75a8.5 8.5 0 0 0 17 0v-.75"/>
<path d="M16 24.75v3.75"/>
<path d="M11.5 28.5h9"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 365 B

After

Width:  |  Height:  |  Size: 365 B

+1 -1
View File
@@ -19,7 +19,7 @@ mkdir -p "$INPUT_APP_DIR/Contents/MacOS" "$INPUT_APP_DIR/Contents/Resources"
cp "$PROJECT_DIR/.build/release/WhisperKeyInput" "$INPUT_APP_DIR/Contents/MacOS/WhisperKeyInput"
cp "$PROJECT_DIR/Resources/InputMethod-Info.plist" "$INPUT_APP_DIR/Contents/Info.plist"
sips -s format tiff "$PROJECT_DIR/Resources/WhisperKeyInput.svg" \
--out "$INPUT_APP_DIR/Contents/Resources/WhisperKeyInputTemplate.tiff" >/dev/null
--out "$INPUT_APP_DIR/Contents/Resources/WhisperKeyInputTemplateV2.tiff" >/dev/null
codesign --force --deep --sign - "$INPUT_APP_DIR"
echo "$APP_DIR"
+1
View File
@@ -10,6 +10,7 @@ ditto "$PROJECT_DIR/dist/WhisperKey.app" "/Applications/WhisperKey.app"
INPUT_METHOD_DIR="$HOME/Library/Input Methods"
mkdir -p "$INPUT_METHOD_DIR"
pkill -x WhisperKeyInput 2>/dev/null || true
rm -rf "$INPUT_METHOD_DIR/WhisperKeyInput.app"
ditto "$PROJECT_DIR/dist/WhisperKeyInput.app" "$INPUT_METHOD_DIR/WhisperKeyInput.app"
open -gja "$INPUT_METHOD_DIR/WhisperKeyInput.app"