Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

Commit cf538e7

Browse files
committed
Adjust MinUI border logic
Refined OutTableViewWindow to set border thickness instead of disabling border style for MinUI mode, and adjusted TableView Y position to start at 0.
1 parent 574581a commit cf538e7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/Microsoft.PowerShell.ConsoleGuiTools/OutTableViewWindow.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public OutTableViewWindow(ApplicationData applicationData, OutTableViewDataSourc
5353
switch (_applicationData.MinUI)
5454
{
5555
case true:
56-
BorderStyle = LineStyle.None;
56+
//BorderStyle = LineStyle.None;
57+
Border.Thickness = new Thickness(0, string.IsNullOrEmpty(_applicationData.Title) ? 0 : 1, 0, 0);
5758
if (!string.IsNullOrEmpty(_applicationData.Filter)) AddFilter();
5859
break;
5960
case false:
@@ -307,7 +308,7 @@ private void AddTableView()
307308
_tableView = new TableView
308309
{
309310
X = 0,
310-
Y = _filterErrorView is not null ? Pos.Bottom(_filterErrorView) : 1,
311+
Y = _filterErrorView is not null ? Pos.Bottom(_filterErrorView) : 0,
311312
Width = Dim.Fill(),
312313
Height = _statusBar is not null ? Dim.Fill(_statusBar) : Dim.Fill(),
313314
FullRowSelect = true,

src/Microsoft.PowerShell.ConsoleGuiTools/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"OCTV": {
3434
"commandName": "Executable",
3535
"executablePath": "C:\\Program Files\\PowerShell\\7-preview\\pwsh.exe",
36-
"commandLineArgs": "-NoProfile -NoLogo -NoExit -Command \"& { Import-Module '$(TargetPath)'; Get-Process | Select-Object ProcessName, Id,\r\n @{Name='CPU(s)'; Expression={[math]::Round($_.CPU,2)}},\r\n @{Name='WorkingSet(MB)'; Expression={[math]::Round($_.WorkingSet64/1MB,2)}},\r\n @{Name='Private(MB)'; Expression={[math]::Round($_.PrivateMemorySize64/1MB,2)}}\r\n | Out-ConsoleTableView -Debug }\"",
36+
"commandLineArgs": "-NoProfile -NoLogo -NoExit -Command \"& { Import-Module '$(TargetPath)'; Get-Process | Select-Object ProcessName, Id,\r\n @{Name='CPU(s)'; Expression={[math]::Round($_.CPU,2)}},\r\n @{Name='WorkingSet(MB)'; Expression={[math]::Round($_.WorkingSet64/1MB,2)}},\r\n @{Name='Private(MB)'; Expression={[math]::Round($_.PrivateMemorySize64/1MB,2)}}\r\n | Out-ConsoleTableView -Debug -Title \"processes\" -MinUI -Filter pass -OutputMode Single}\"",
3737
"workingDirectory": "$(TargetDir)"
3838
},
3939
"OCTV Slow": {

0 commit comments

Comments
 (0)