Skip to content

Add option to hide controls toolbar via tray menu#15

Merged
shanselman merged 9 commits intomasterfrom
copilot/add-toolbar-hide-option
Nov 24, 2025
Merged

Add option to hide controls toolbar via tray menu#15
shanselman merged 9 commits intomasterfrom
copilot/add-toolbar-hide-option

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 24, 2025

Implements toggleable visibility for the control toolbar. Users can hide the toolbar for a cleaner look and restore it using the tray menu.

Changes

  • Tray menu: Added "Hide/Show Controls" item with dynamic text reflecting current state
  • State preservation: Visibility state maintained across window recreation (monitor switches, resolution changes)
  • Help updates: Updated help dialog and README to reflect tray menu access

Implementation

// State tracking
private bool isControlWindowVisible = true;
private ToolStripMenuItem? toggleControlsMenuItem;

// Toggle method
public void ToggleControlsVisibility()
{
    isControlWindowVisible = !isControlWindowVisible;
    
    if (controlWindow != null)
    {
        if (isControlWindowVisible)
            controlWindow.Show();
        else
            controlWindow.Hide();
    }
    
    UpdateTrayMenuToggleControlsText();
}

// Respect state when creating control window
private void CreateControlWindow()
{
    controlWindow = new ControlWindow(this);
    RepositionControlWindow();
    
    if (isControlWindowVisible)
        controlWindow.Show();
}

Menu item stores direct reference for O(1) text updates. Users access the feature by right-clicking the tray icon and selecting "Hide Controls" or "Show Controls".

<issue_title>Feature request: Option to hide controls toolbar</issue_title>
><issue_description></issue_description>
>
><agent_instructions>Suggest a few UI ways to do this? If the toolbar is gone, would you get it back from the tray again? what's a good way to do this without adding another button?</agent_instructions>
>
> ## Comments on the Issue (you are @copilot in this section)
>
>
>
>

Original prompt

This section details on the original issue you should resolve

<issue_title>Feature request: Option to hide controls toolbar</issue_title>
<issue_description></issue_description>

<agent_instructions>Suggest a few UI ways to do this? If the toolbar is gone, would you get it back from the tray again? what's a good way to do this without adding another button?</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 6 commits November 24, 2025 06:08
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Copilot AI changed the title [WIP] Add option to hide controls toolbar Add option to hide controls toolbar via hotkey and tray menu Nov 24, 2025
Copilot AI requested a review from shanselman November 24, 2025 06:24
@shanselman
Copy link
Copy Markdown
Owner

✅ Successfully merged master into this branch to integrate with all latest features:

  • GitVersion for automatic semantic versioning
  • Color temperature controls (🔥 warmer, ❄️ cooler)
  • All monitors mode
  • Cursor ring hover effect
  • Single instance enforcement

The hide/show controls feature now works seamlessly with all current functionality. Ready for final review and merge!

@shanselman
Copy link
Copy Markdown
Owner

let's not have a global hotkey @copilot, we don't need one. Let's do the hide and show with the tray icon

@shanselman shanselman marked this pull request as ready for review November 24, 2025 06:43
…nality

Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 24, 2025

let's not have a global hotkey @copilot, we don't need one. Let's do the hide and show with the tray icon

Removed the global hotkey. The hide/show controls feature now works only through the tray icon (right-click → "Hide Controls" / "Show Controls").

Changes in commit 1e06ae3:

  • Removed HOTKEY_TOGGLE_CONTROLS constant and registration
  • Removed VK_C constant
  • Removed hotkey handler from HwndHook
  • Updated tray menu item to not show hotkey text
  • Removed hotkey from help dialog
  • Updated README to reflect tray-only access

The ToggleControlsVisibility() method and state tracking remain fully functional via the tray menu.

Copilot AI changed the title Add option to hide controls toolbar via hotkey and tray menu Add option to hide controls toolbar via tray menu Nov 24, 2025
@shanselman shanselman merged commit a50b806 into master Nov 24, 2025
@shanselman shanselman deleted the copilot/add-toolbar-hide-option branch November 24, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Option to hide controls toolbar

2 participants