doublecmd
doublecmd copied to clipboard
Toolbar icons in non-main windows are too small in high DPI displays
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.
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?