Skip to content

feat(companion): minimize and maximize buttons on the floating window - #6

Open
AlexDXC2026 wants to merge 2 commits into
mainfrom
feat/overlay-window-buttons
Open

AlexDXC2026 wants to merge 2 commits into
mainfrom
feat/overlay-window-buttons

Conversation

@AlexDXC2026

Copy link
Copy Markdown
Owner

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

  • Windows caption glyphs from Segoe MDL2 Assets (Windows 10+), plain-text fallback otherwise.
  • Maximize fills the screen working area by hand: native SW_MAXIMIZE activates the window and would take focus from the game. Double-click on the page title toggles it. State saved in config.json (Maximized); normal bounds are kept.
  • Minimize uses SW_MINIMIZE (focus returns to the game). The hotkey, tray icon or next copied link restore it with SW_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

AlexDXC2026 and others added 2 commits November 18, 2026 20:16
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>
@AlexDXC2026

Copy link
Copy Markdown
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, WM_NCHITTEST) handled in code; WS_EX_TOOLWINDOW keeps it out of the taskbar. Checked with a screenshot of the real window.

🤖 Generated with Claude Code

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.

1 participant