mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 12:39:15 +02:00
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:
parent
56b4fca0a9
commit
8279f6a778
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user