This is caused by a bug in Delphi 13.1. Normally, the predefined button icons should be hidden when an image from a TImageList is assigned to the button.
This bug has been reported to Embarcadero, and hopefully it will be fixed in a future update.
As a workaround, you can use the code shown below. Assign the OnApplyStyleLookup event handler to all buttons that use images from a TImageList:
Code: Select all
procedure TfrmMain.btnApplyStyleLookup(Sender: TObject);
var
Ico: TControl;
begin
if (Sender as TStyledControl).FindStyleResource<TControl>('icon', Ico) then
Ico.Visible := False;
end;