Repository navigation
feat(companion): minimize and maximize buttons on the floating window - #6
Open
AlexDXC2026 wants to merge 2 commits into
Open
AlexDXC2026 wants to merge 2 commits into
AlexDXC2026 wants to merge 2 commits into
Conversation
Adds the usual minimize and maximize/restore buttons (Segoe MDL2 glyphs, text fallback) at the right of the toolbar; double-clicking the title also maximizes. Maximize fills the working area by hand because SW_MAXIMIZE would activate the window and steal focus from the game. The maximized state is saved; a minimized window is restored without activation by the hotkey, the tray icon or the next copied link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The minimize/maximize buttons sat in the toolbar under the native tool-window caption, which only has a close button. The window is now borderless (WS_EX_TOOLWINDOW keeps it out of the taskbar) with its own title bar: navigation, page title, and minimize / maximize / close in one row. Drag and double-click on the title bar, resize from a 4 px frame via WM_NCHITTEST. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Update after user feedback (the buttons looked odd under the native caption): the window is now borderless with its own one-row title bar — navigation on the left, page title, and minimize / maximize / close on the right. Moving (drag title), maximize (double-click title) and resizing (4 px frame, 🤖 Generated with Claude Code |
AlexDXC2026
force-pushed
the
feat/overlay-window-buttons
branch
from
November 19, 2026 18:49
295b989 to
e0528b6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Minimize and maximize/restore buttons at the right of the floating window toolbar (requested by the user, next to the existing Hide button).
Details
SW_MAXIMIZEactivates the window and would take focus from the game. Double-click on the page title toggles it. State saved inconfig.json(Maximized); normal bounds are kept.SW_MINIMIZE(focus returns to the game). The hotkey, tray icon or next copied link restore it withSW_SHOWNOACTIVATE, which does not take focus; the hotkey restores instead of hiding when minimized.Verified
Built and installed; a copied link opened the window (
visible = True · topmost = True). Visual check of the new buttons pending from the user.🤖 Generated with Claude Code