mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 10:35:58 +02:00
PackageTabs: High-DPI-aware button margins.
This commit is contained in:
parent
a6559d89ab
commit
3464b4a577
@ -503,8 +503,9 @@ begin
|
||||
if IDEEditorOptions.TabPosition in [tpLeft, tpRight] then
|
||||
begin
|
||||
Alignment := taLeftJustify;
|
||||
Margin := 2; // need for left text align
|
||||
BorderSpacing.Left := 8;
|
||||
Margin := Scale96ToFont(4); // need for left text align
|
||||
BorderSpacing.Left := Scale96ToFont(8);
|
||||
BorderSpacing.Right := 1;
|
||||
end;
|
||||
|
||||
Transparent := True;
|
||||
@ -929,7 +930,7 @@ begin
|
||||
if FPanel is TPackageTabScrollBox then
|
||||
begin
|
||||
xLbl.Alignment := taLeftJustify;
|
||||
xLbl.BorderSpacing.Left := 2;
|
||||
xLbl.BorderSpacing.Left := FPanel.Scale96ToFont(4);
|
||||
end
|
||||
else if FPanel is TPackageTabFlowPanel then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user