From 8d4f35352f21238c68f62a0c94c9d4563d5e7de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Thu, 21 May 2026 17:01:08 +0200 Subject: [PATCH] skip About-row brand mark on macOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NSMenuItem.setImage stretches the row to the leading image's pixel size regardless of the surrounding rows, so any non-empty bitmap on the About entry made it visibly taller than the rest of the tray menu — leaving 16, 18 or 22 px versions all looking wrong next to the unadorned rows above and below. Drop the macOS brand mark and gate the SetBitmap call on a non-empty byte slice; iconMenuNetbird is now nil on macOS, so the About row falls back to text only. Windows and Linux still ship the brand mark through their per-platform embed files. --- client/ui/assets/netbird-menu-22.png | Bin 687 -> 0 bytes client/ui/icons_menu_darwin.go | 24 +++++++++++++----------- client/ui/tray.go | 6 +++++- 3 files changed, 18 insertions(+), 12 deletions(-) delete mode 100644 client/ui/assets/netbird-menu-22.png diff --git a/client/ui/assets/netbird-menu-22.png b/client/ui/assets/netbird-menu-22.png deleted file mode 100644 index 87c6b599537515c7ef1d37eed3d76f3f1a2a15e7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 687 zcmV;g0#N;lP)u`+*OoG%N9ihLc978f)*{Jm75$gOE4&E)2ayC z_7BWLY9&OJnl8dci^xQ*kx?5PXU6yLX<;Ke^F}Fh(cQg!zUOnl=bigQRF(Z0W?!iL z3HJUbsWRGk%=h)2h;-M+L@37m4b@V~UqgvA>k zX%%|S;pMH}7phs0z2wHHa#&2lZnyHtnI1>*5s1263;z6}dPk}Cjns>5q|u_Gjvc`x zAPQjGe_%WFHFm(X6$TpD65_aYx9@@)eN`(A7TO5DZT@qcF65F=$2xWc@4SSD&wE%N zhY4+G9t{j`xf$0|xwIR!4qUeR9>r!svUN%UuPbj{q7-R 0 { aboutItem.SetBitmap(iconMenuNetbird) } about.Add(t.loc.T("tray.menu.github")).OnClick(func(*application.Context) {