NetBird sends its tray icon as a pixmap, so an icon theme can't replace it. patch.py rewrites the 48x48 PNGs embedded in netbird-ui in place: the glyph is scaled to 80% to get Breeze's padding and the white variants take the panel text color (#dedede). A pacman hook re-patches the binary after every netbird-ui upgrade, and restore.sh puts the original back.
12 lines
257 B
Plaintext
12 lines
257 B
Plaintext
[Trigger]
|
|
Operation = Install
|
|
Operation = Upgrade
|
|
Type = Package
|
|
Target = netbird-ui
|
|
Target = netbird-ui-bin
|
|
|
|
[Action]
|
|
Description = Patching NetBird tray icons to match Breeze...
|
|
When = PostTransaction
|
|
Exec = /usr/local/share/netbird-breeze-icons/apply.sh
|