Skip to content

Commit b474f84

Browse files
committed
removed border when minui is enabled
1 parent 5e0cdcc commit b474f84

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Microsoft.PowerShell.ConsoleGuiTools/ConsoleGui.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,16 @@ private Window CreateTopLevelWindow()
141141
{
142142
X = _applicationData.MinUI ? -1 : 0,
143143
Y = _applicationData.MinUI ? -1 : 0,
144+
144145
// By using Dim.Fill(), it will automatically resize without manual intervention
145146
Width = Dim.Fill(_applicationData.MinUI ? -1 : 0),
146147
Height = Dim.Fill(_applicationData.MinUI ? -1 : 1)
147148
};
148-
149+
150+
if (_applicationData.MinUI) {
151+
win.Border.BorderStyle = BorderStyle.None;
152+
}
153+
149154
Application.Top.Add(win);
150155
return win;
151156
}

0 commit comments

Comments
 (0)