mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: file icon issue in FileProperties Form (#868)
This commit is contained in:
parent
6d025ca72b
commit
3d73cf4fb7
2 changed files with 7 additions and 2 deletions
|
|
@ -64,6 +64,7 @@ object frmFileProperties: TfrmFileProperties
|
|||
Height = 32
|
||||
Top = 0
|
||||
Width = 32
|
||||
Stretch = True
|
||||
end
|
||||
end
|
||||
object lblFileName: TLabel
|
||||
|
|
|
|||
|
|
@ -174,6 +174,8 @@ begin
|
|||
end;
|
||||
|
||||
constructor TfrmFileProperties.Create(AOwner: TComponent; aFileSource: IFileSource; theFiles: TFiles);
|
||||
var
|
||||
size: Integer;
|
||||
begin
|
||||
FExif:= TExifReader.Create;
|
||||
FFileSource:= aFileSource;
|
||||
|
|
@ -183,8 +185,10 @@ begin
|
|||
|
||||
inherited Create(AOwner);
|
||||
|
||||
imgFileIcon.Width:= gIconsSize;
|
||||
imgFileIcon.Height:= gIconsSize;
|
||||
size:= gIconsSize * round( Application.MainForm.GetCanvasScaleFactor );
|
||||
if size > 48 then size:= 48;
|
||||
imgFileIcon.Width:= size;
|
||||
imgFileIcon.Height:= size;
|
||||
end;
|
||||
|
||||
destructor TfrmFileProperties.Destroy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue