Skip to content

Open source CapCut alternative.

TypeScript

fix(app): size the menu bar icon at 20pt with updated glyph assets [rebuild]

David Le3fb8b1b550a4
diff --git a/apps/Donkey/Sources/Donkey/DonkeyStatusItemController.swift b/apps/Donkey/Sources/Donkey/DonkeyStatusItemController.swift
index 4a017030..bb6be615 100644
--- a/apps/Donkey/Sources/Donkey/DonkeyStatusItemController.swift
+++ b/apps/Donkey/Sources/Donkey/DonkeyStatusItemController.swift
@@ -115,7 +115,7 @@ final class DonkeyStatusItemController: NSObject, NSMenuDelegate {
/// The donkey glyph as a template image: pure black plus alpha, so the system recolors it
/// for light/dark menu bars and the selected state (Apple's status-item guideline).
private static func menuBarIcon() -> NSImage {
- let image = NSImage(size: NSSize(width: 21, height: 21))
+ let image = NSImage(size: NSSize(width: 20, height: 20))
for resource in ["menu-bar-icon", "menu-bar-icon@2x"] {
guard let url = Bundle.module.url(forResource: resource, withExtension: "png"),
let data = try? Data(contentsOf: url),
diff --git a/apps/Donkey/Sources/Donkey/Resources/menu-bar-icon.png b/apps/Donkey/Sources/Donkey/Resources/menu-bar-icon.png
index 2d1ea5ff..e6cbdce5 100644
Binary files a/apps/Donkey/Sources/Donkey/Resources/menu-bar-icon.png and b/apps/Donkey/Sources/Donkey/Resources/menu-bar-icon.png differ
diff --git a/apps/Donkey/Sources/Donkey/Resources/[email protected] b/apps/Donkey/Sources/Donkey/Resources/[email protected]
index 5ac05bbf..b1572aec 100644
Binary files a/apps/Donkey/Sources/Donkey/Resources/[email protected] and b/apps/Donkey/Sources/Donkey/Resources/[email protected] differ