mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 22:56:06 +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
|
if IDEEditorOptions.TabPosition in [tpLeft, tpRight] then
|
||||||
begin
|
begin
|
||||||
Alignment := taLeftJustify;
|
Alignment := taLeftJustify;
|
||||||
Margin := 2; // need for left text align
|
Margin := Scale96ToFont(4); // need for left text align
|
||||||
BorderSpacing.Left := 8;
|
BorderSpacing.Left := Scale96ToFont(8);
|
||||||
|
BorderSpacing.Right := 1;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Transparent := True;
|
Transparent := True;
|
||||||
@ -929,7 +930,7 @@ begin
|
|||||||
if FPanel is TPackageTabScrollBox then
|
if FPanel is TPackageTabScrollBox then
|
||||||
begin
|
begin
|
||||||
xLbl.Alignment := taLeftJustify;
|
xLbl.Alignment := taLeftJustify;
|
||||||
xLbl.BorderSpacing.Left := 2;
|
xLbl.BorderSpacing.Left := FPanel.Scale96ToFont(4);
|
||||||
end
|
end
|
||||||
else if FPanel is TPackageTabFlowPanel then
|
else if FPanel is TPackageTabFlowPanel then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user