LCL: taskbar: always stretch images

This commit is contained in:
Ondrej Pokorny 2022-09-28 16:50:24 +02:00
parent 5114a458e5
commit 8629548a7b

View File

@ -883,6 +883,8 @@ begin
Image.Images := GetDialogImages; Image.Images := GetDialogImages;
Image.ImageIndex := GetDialogImages.DialogIndexes[LCL_IMAGES[aDialogIcon]]; Image.ImageIndex := GetDialogImages.DialogIndexes[LCL_IMAGES[aDialogIcon]];
Image.SetBounds(IconBorder,IconBorder, 32, 32); Image.SetBounds(IconBorder,IconBorder, 32, 32);
Image.Stretch := True;
Image.Proportional := True;
X := Image.Width+IconBorder*2; X := Image.Width+IconBorder*2;
Y := Image.Top; Y := Image.Top;
if aEmulateClassicStyle then if aEmulateClassicStyle then
@ -1077,6 +1079,8 @@ begin
Image.Images := GetDialogImages; Image.Images := GetDialogImages;
Image.ImageWidth := 16; Image.ImageWidth := 16;
Image.ImageIndex := GetDialogImages.DialogIndexes[LCL_FOOTERIMAGES[aFooterIcon]]; Image.ImageIndex := GetDialogImages.DialogIndexes[LCL_FOOTERIMAGES[aFooterIcon]];
Image.Stretch := True;
Image.Proportional := True;
Image.SetBounds(24,Y,16,16); Image.SetBounds(24,Y,16,16);
X := 40+Image.Width; X := 40+Image.Width;
end else end else