mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-19 02:41:10 +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;
|
useBezel := false;
|
||||||
if Details.Element = teToolBar then
|
if Details.Element = teToolBar then
|
||||||
begin
|
begin
|
||||||
BtnType := NSOnOffButton;
|
BtnType := NSToggleButton; // it usesd to be NSOnOffButton, but NSOnOffButton is not transparent.
|
||||||
BezelStyle := BezelToolBar;
|
BezelStyle := BezelToolBar;
|
||||||
useBezel := true;
|
useBezel := true;
|
||||||
end else if Details.Element = teButton then
|
end else if Details.Element = teButton then
|
||||||
|
Loading…
Reference in New Issue
Block a user