I'm on KDE Neon 5.12 (Plasma 5.12.3) and since a while, the SysTray-Icons of my own programs, all compiled with PB 5.46 LTS (x64) , are always very small:
Code: Select all
#size = 64; change to image size for test
; create some image
icon.i = CreateImage(#PB_Any, #size, #size, 32)
StartDrawing(ImageOutput(icon.i))
Box(1,1,#size,#size, RGBA(255,0,0,255))
StopDrawing()
; open some window
win.i = OpenWindow(#PB_Any, 0, 0, 230, 90, "Test, simply close me", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If win.i
; AddTrayIcon
winId.i = WindowID(win.i)
tray.i = AddSysTrayIcon(#PB_Any, winId.i, ImageID(icon.i))
SysTrayIconToolTip(tray.i, "Test ToolTip")
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_SysTray
Debug "Tray event"
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
RemoveSysTrayIcon(tray.i)
End
As other SysTray-Images are fine, I assume some PB bug?