mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 01:36:16 +02:00
Cocoa: improve TrayIcon to make it adaptive icon size
This commit is contained in:
parent
30719c1db4
commit
9d09a0c98b
@ -40,7 +40,10 @@ begin
|
||||
if (ATrayIcon.icon <> nil) and (ATrayIcon.icon.Handle <> 0) then
|
||||
begin
|
||||
image := TCocoaBitmap(ATrayIcon.icon.Handle).image;
|
||||
if image <> nil then statusitem.setImage(image);
|
||||
if image <> nil then begin
|
||||
statusItem.button.setImageScaling(NSImageScaleProportionallyUpOrDown);
|
||||
statusItem.button.setImage(image);
|
||||
end;
|
||||
end;
|
||||
|
||||
// Show the menu
|
||||
|
Loading…
Reference in New Issue
Block a user