cocoa: changing button type, when drawing a toolbutton style. Changing the buttonType makes macOS to draw it transparent (on pre Mojave OSes). bug #37127

git-svn-id: trunk@63297 -
This commit is contained in:
dmitry 2020-06-05 03:31:04 +00:00
parent 56b4fca0a9
commit 8279f6a778

View File

@ -968,7 +968,7 @@ begin
useBezel := false;
if Details.Element = teToolBar then
begin
BtnType := NSOnOffButton;
BtnType := NSToggleButton; // it usesd to be NSOnOffButton, but NSOnOffButton is not transparent.
BezelStyle := BezelToolBar;
useBezel := true;
end else if Details.Element = teButton then