Skip to content

Commit 563fcd2

Browse files
authored
chore(logo): fix release yml and chang logo (#42)
1 parent a050549 commit 563fcd2

File tree

17 files changed

+64
-12
lines changed

17 files changed

+64
-12
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ jobs:
350350
351351
echo ""
352352
echo "=== Verify release-info.json ==="
353-
echo "Reading release-info.json directly from OSS..."
354-
ossutil cat oss://valuecell-clawx/latest/release-info.json | jq .
353+
ossutil cp oss://valuecell-clawx/latest/release-info.json /tmp/release-info.json -f
354+
jq . /tmp/release-info.json
355355
356356
echo ""
357357
echo "✅ All files uploaded and verified successfully!"

electron/main/tray.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ export function createTray(mainWindow: BrowserWindow): Tray {
2929
// Windows: use .ico for best quality in system tray
3030
iconPath = join(iconsDir, 'icon.ico');
3131
} else if (process.platform === 'darwin') {
32-
// macOS: use 16x16 PNG as template image
33-
iconPath = join(iconsDir, '16x16.png');
32+
// macOS: use Template.png for proper status bar icon
33+
// The "Template" suffix tells macOS to treat it as a template image
34+
iconPath = join(iconsDir, 'tray-icon-Template.png');
3435
} else {
3536
// Linux: use 32x32 PNG
3637
iconPath = join(iconsDir, '32x32.png');
@@ -41,9 +42,14 @@ export function createTray(mainWindow: BrowserWindow): Tray {
4142
// Fallback to icon.png if platform-specific icon not found
4243
if (icon.isEmpty()) {
4344
icon = nativeImage.createFromPath(join(iconsDir, 'icon.png'));
45+
// Still try to set as template for macOS
46+
if (process.platform === 'darwin') {
47+
icon.setTemplateImage(true);
48+
}
4449
}
4550

46-
// On macOS, set as template image for proper dark/light mode support
51+
// Note: Using "Template" suffix in filename automatically marks it as template image
52+
// But we can also explicitly set it for safety
4753
if (process.platform === 'darwin') {
4854
icon.setTemplateImage(true);
4955
}

resources/icons/128x128.png

-41 Bytes
Loading

resources/icons/16x16.png

27 Bytes
Loading

resources/icons/256x256.png

969 Bytes
Loading

resources/icons/32x32.png

60 Bytes
Loading

resources/icons/48x48.png

-14 Bytes
Loading

resources/icons/512x512.png

3.99 KB
Loading

resources/icons/64x64.png

-33 Bytes
Loading

resources/icons/README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ This directory contains the application icons for all supported platforms.
1111
| `icon.ico` | Windows | Windows ICO format |
1212
| `icon.png` | All | 512x512 PNG fallback |
1313
| `16x16.png` - `512x512.png` | Linux | PNG set for Linux |
14+
| `tray-icon-template.svg` | Source | macOS tray icon template source |
15+
| `tray-icon-Template.png` | macOS | 22x22 status bar icon (note: "Template" suffix required) |
1416

1517
## Generating Icons
1618

@@ -55,14 +57,23 @@ If you prefer to generate icons manually:
5557

5658
## Design Guidelines
5759

58-
- **Background**: Gradient from #6366f1 to #8b5cf6 (Indigo to Violet)
60+
### Application Icon
5961
- **Corner Radius**: ~20% of width (200px on 1024px canvas)
6062
- **Foreground**: White claw symbol with "X" accent
6163
- **Safe Area**: Keep 10% margin from edges
6264

65+
### macOS Tray Icon
66+
- **Format**: Single-color (black) on transparent background
67+
- **Size**: 22x22 pixels (system automatically handles @2x retina)
68+
- **Naming**: Must end with "Template.png" for automatic template mode
69+
- **Design**: Simplified monochrome version of main icon (ClawX logo)
70+
- **Source**: Use `tray-icon-template.svg` as the source
71+
- **Important**: Must be pure black (#000000) on transparent background - no gradients or colors
72+
6373
## Updating the Icon
6474

6575
1. Edit `icon.svg` with your vector editor (Figma, Illustrator, Inkscape)
66-
2. Run `./scripts/generate-icons.sh`
67-
3. Verify generated icons look correct
68-
4. Commit all generated files
76+
2. For macOS tray icon, edit `tray-icon-template.svg` (must be single-color black on transparent)
77+
3. Run `node scripts/generate-icons.mjs`
78+
4. Verify generated icons look correct
79+
5. Commit all generated files

0 commit comments

Comments
 (0)