doublecmd icon indicating copy to clipboard operation
doublecmd copied to clipboard

Toolbar icons in non-main windows are too small in high DPI displays

Open jdp1024 opened this issue 1 year ago • 0 comments

Version

Double Commander Version: 1.2.0 alpha Revision: Unknown Commit: Unknown Build date: 2024/12/31 Lazarus: 3.6.0.0 FPC: 3.2.2 Platform: x86_64-Win64-win32/win64 OS version: Windows 11 23H2 x86_64

Description

The icon size of non-main window (like Viewer and Editor) toolbars is saved as ToolSize in doublecmd.xml but there is no visible setting anywhere in the UI. Its default value is 24, it is too small in high DPI displays.

2025-01-09_114517

procedure TfrmViewer.AfterConstruction;
begin
  inherited AfterConstruction;
  ToolBar1.ImagesWidth:= gToolIconsSize;
  ToolBar1.SetButtonSize(gToolIconsSize + ScaleX(6, 96),
                         gToolIconsSize + ScaleY(6, 96));
end;

Should it be controlled by gToolBarIconSize if there is no need to add a new UI control?

jdp1024 avatar Jan 09 '25 03:01 jdp1024