diff --git a/lcl/interfaces/qt5/qtthemes.pas b/lcl/interfaces/qt5/qtthemes.pas index fd86299f8c..5f4179fb65 100644 --- a/lcl/interfaces/qt5/qtthemes.pas +++ b/lcl/interfaces/qt5/qtthemes.pas @@ -1129,15 +1129,26 @@ begin TP_DROPDOWNBUTTON, TP_SPLITBUTTON: // there is another positibility to draw TP_SPLITBUTTON by CC_ToolButton begin + {$IFDEF DARWIN} + Result.DrawVariant := qdvComplexControl; + Result.ComplexControl := QStyleCC_ToolButton; + Result.SubControls := QStyleSC_ToolButton; + Result.Features := QStyleOptionToolButtonNone; + {$ELSE} Result.DrawVariant := qdvPrimitive; Result.PrimitiveElement := QStylePE_PanelButtonTool; + {$ENDIF} end; TP_SPLITBUTTONDROPDOWN: begin Result.DrawVariant := qdvComplexControl; Result.ComplexControl := QStyleCC_ToolButton; Result.SubControls := QStyleSC_None; + {$IFDEF DARWIN} + Result.Features := QStyleOptionToolButtonHasMenu; + {$ELSE} Result.Features := QStyleOptionToolButtonMenuButtonPopup; + {$ENDIF} end; TP_SEPARATOR, TP_SEPARATORVERT: