From 8df3e2cd94f99989990fea70788c9997b30e3e1a Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sun, 27 Sep 2026 02:21:19 +0800 Subject: [PATCH] Keep menu bar tray icons at their natural aspect ratio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forcing every icon into a square stretched wide symbols such as the battery into a blocky shape, making them hard to recognise. Scale to fit instead so wide icons stay long and short. 💘 Generated with Crush Assisted-by: Crush:deepseek-v4.1-flash --- Sources/SimpleTopBar/TopBarView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/SimpleTopBar/TopBarView.swift b/Sources/SimpleTopBar/TopBarView.swift index ed2c46d..2eb95a8 100644 --- a/Sources/SimpleTopBar/TopBarView.swift +++ b/Sources/SimpleTopBar/TopBarView.swift @@ -245,8 +245,11 @@ private struct MenuBarTile: View { Button { menuBar.press(item) } label: { + // Preserve the symbol's aspect ratio: forcing wide symbols like the + // battery into a square stretches them into a blocky shape. Image(nsImage: item.icon) .resizable() + .scaledToFit() .frame(width: 20, height: 20) .padding(6) .background(