-
Notifications
You must be signed in to change notification settings - Fork 69
OCGV: Add ability to minimize UI #116
Copy link
Copy link
Closed
Labels
Module-ConsoleGuiToolsThis issue is about Microsoft.PowerShell.ConsoleGuiToolsThis issue is about Microsoft.PowerShell.ConsoleGuiToolsenhancementNew feature or requestNew feature or request
Description
The window border, filter box, and status bar use valuable screen real estate. I'd like to have an option of not having it visible.
I considered having parameters for all of them:
-NoFrame-NoFilter-NoStatusBar
But that seems overkill. Instead, just:
-MinUI
I just pushed a change to Terminal.Gui that will enable hiding the statusbar. Then all that's needed is to change the logic that creates the Window to:
private Window AddTopLevelWindow()
{
// Creates the top-level window to show
var win = new Window(_applicationData.Title)
{
X = _applicationData.MinUi ? -1 : 0,
Y = _applicationData.MinUi ? -1 : 0,
// By using Dim.Fill(), it will automatically resize without manual intervention
Width = Dim.Fill(_applicationData.MinUi ? -1 : 0),
Height = Dim.Fill(_applicationData.MinUi ? -1 : 1)
};
Application.Top.Add(win);
return win;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Module-ConsoleGuiToolsThis issue is about Microsoft.PowerShell.ConsoleGuiToolsThis issue is about Microsoft.PowerShell.ConsoleGuiToolsenhancementNew feature or requestNew feature or request