Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified assets/AppIcon.icns
Binary file not shown.
Binary file modified assets/AppIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions assets/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# ClearFlow app icon

The original seven-bar ClearFlow waveform uses a white mark on a dark plum rounded tile, with transparent macOS icon margins. It follows the app's existing waveform identity. No third-party artwork is included.
The approved five-bar waveform uses an ivory mark on a softly shaded dark tile, with transparent macOS icon margins. No third-party artwork is included.

- `AppIcon.png`: approved 1254-pixel bitmap master; edit this file to change the artwork.
- `AppIcon.icns`: Finder, Dock and application-switcher icon, bundled by `scripts/build-app.sh`.
- `AppIcon.png`: 1024-pixel transparent preview/export.
- `../scripts/render-app-icon.swift`: editable native drawing source, under the repository MIT license.
- `../scripts/generate-icon.sh`: packages the master into all standard icon resolutions using macOS image tools.
- `../scripts/render-app-icon.swift`: retained editable drawing source for the earlier seven-bar concept; it does not generate the current icon.

Rebuild all icon resolutions on macOS with Command Line Tools installed:
Rebuild the ICNS on macOS:

```sh
scripts/generate-icon.sh
scripts/build-app.sh
```

The ICNS contains 16, 32, 64, 128, 256, 512 and 1024-pixel images. Builds use the committed icon, so routine app compilation does not require regeneration.
The ICNS contains 16, 32, 64, 128, 256, 512 and 1024-pixel images. Builds use the committed ICNS; normal app compilation does not regenerate the artwork. Icon assets and the retained drawing source are covered by the repository MIT license.
2 changes: 1 addition & 1 deletion scripts/build-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cp assets/AppIcon.icns "$APP/Contents/Resources/AppIcon.icns"
python3 - "$APP" "http://127.0.0.1:8768" <<'PY'
import pathlib,plistlib,sys
app=pathlib.Path(sys.argv[1])
info={"CFBundleName":"ClearFlow","CFBundleDisplayName":"ClearFlow","CFBundleIdentifier":"org.clearflow.app","CFBundleExecutable":"ClearFlow","CFBundlePackageType":"APPL","CFBundleShortVersionString":"0.4.4","CFBundleVersion":"12","LSMinimumSystemVersion":"14.0","LSUIElement":False,"CFBundleIconFile":"AppIcon","NSHighResolutionCapable":True,"NSMicrophoneUsageDescription":"ClearFlow records your voice only when you start dictation, then sends it to the transcription service you configure.","ClearFlowEndpoint":sys.argv[2]}
info={"CFBundleName":"ClearFlow","CFBundleDisplayName":"ClearFlow","CFBundleIdentifier":"org.clearflow.app","CFBundleExecutable":"ClearFlow","CFBundlePackageType":"APPL","CFBundleShortVersionString":"0.4.5","CFBundleVersion":"13","LSMinimumSystemVersion":"14.0","LSUIElement":False,"CFBundleIconFile":"AppIcon","NSHighResolutionCapable":True,"NSMicrophoneUsageDescription":"ClearFlow records your voice only when you start dictation, then sends it to the transcription service you configure.","ClearFlowEndpoint":sys.argv[2]}
(app/"Contents/Info.plist").write_bytes(plistlib.dumps(info))
PY
# Remove linker debug records containing the build machine absolute source paths.
Expand Down
8 changes: 3 additions & 5 deletions scripts/generate-icon.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")/.."
mkdir -p assets
# Package the approved bitmap master without redrawing its artwork.
icon_work="$(mktemp -d)"
trap 'rm -rf "$icon_work"' EXIT
mkdir "$icon_work/AppIcon.iconset"
swiftc scripts/render-app-icon.swift -o "$icon_work/render"
for size in 16 32 128 256 512; do
"$icon_work/render" "$icon_work/AppIcon.iconset/icon_${size}x${size}.png" "$size"
"$icon_work/render" "$icon_work/AppIcon.iconset/icon_${size}x${size}@2x.png" "$((size * 2))"
sips -z "$size" "$size" assets/AppIcon.png --out "$icon_work/AppIcon.iconset/icon_${size}x${size}.png" >/dev/null
sips -z "$((size * 2))" "$((size * 2))" assets/AppIcon.png --out "$icon_work/AppIcon.iconset/icon_${size}x${size}@2x.png" >/dev/null
done
cp "$icon_work/AppIcon.iconset/[email protected]" assets/AppIcon.png
iconutil -c icns "$icon_work/AppIcon.iconset" -o assets/AppIcon.icns
Loading