plashenkov / TBX

Themeable toolbars, menus and controls for Delphi
MIT License
46 stars 18 forks source link

TTBXColorItem Image Size is fixed. #19

Open WangPingGang opened 4 years ago

WangPingGang commented 4 years ago

I found TTBXColorItem image size is fixed to 16.

function TTBXColorItemViewer.GetImageSize: TSize; begin if IsToolbarStyle then begin Result.CX := 12; Result.CY := 12; end begin else Result.CX := 16; Result.CY := 16; end; end;

If you mix use TTBXColorItem and TTBXItem, and TTBXToolbar.Images is not a 1616 icons. It really ugly in some themes(TTBXToolbar.Images is 24 24). tbx_bug Can you make TTBXColorItem image size can be set from a property or auto adapt TTBXToolbar.Images size.

plashenkov commented 4 years ago

Got it! I'll try to fix this when I can.