mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: KASToolBar - separator in vertical mode without themes
This commit is contained in:
parent
15bdf92456
commit
3ab052bc3b
1 changed files with 10 additions and 0 deletions
|
|
@ -1127,6 +1127,16 @@ begin
|
|||
DividerRect.Top := (DividerRect.Top + DividerRect.Bottom) div 2 - 3;
|
||||
DividerRect.Bottom := DividerRect.Top + 5;
|
||||
end;
|
||||
|
||||
if not ThemeServices.ThemesEnabled then
|
||||
begin
|
||||
InflateRect(DividerRect, -2, 0);
|
||||
Canvas.Pen.Color := clBtnShadow;
|
||||
Canvas.Line(DividerRect.Left, DividerRect.Top + 1, DividerRect.Right, DividerRect.Top + 1);
|
||||
Canvas.Pen.Color := clBtnHighlight;
|
||||
Canvas.Line(DividerRect.Left, DividerRect.Top + 2, DividerRect.Right, DividerRect.Top + 2);
|
||||
Exit;
|
||||
end;
|
||||
end
|
||||
else begin
|
||||
Details:= ThemeServices.GetElementDetails(ttbSeparatorNormal);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue