From 8279f6a7782ae639ff369194dda423594234434a Mon Sep 17 00:00:00 2001 From: dmitry Date: Fri, 5 Jun 2020 03:31:04 +0000 Subject: [PATCH] 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 - --- lcl/interfaces/cocoa/cocoathemes.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/interfaces/cocoa/cocoathemes.pas b/lcl/interfaces/cocoa/cocoathemes.pas index 1249549ba4..dcaba28763 100644 --- a/lcl/interfaces/cocoa/cocoathemes.pas +++ b/lcl/interfaces/cocoa/cocoathemes.pas @@ -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