Skip to content

feat: reveal hover controls smoothly beside widgets - #189

Merged
Seb-GRAF merged 1 commit into
mainfrom
feat/hover-layout
Oct 22, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
feat/hover-layout

Conversation

@Seb-GRAF

@Seb-GRAF Seb-GRAF commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Amphetamine needs the same inline duration control as volume. Hover expansion currently inserts and removes slider contents while the widget changes width, letting controls draw across the label during the transition.

Changes

  • Add hoverLayout for inline blocks, including sliders that stay open while dragging. A configured click command takes priority over the popup for these widgets.
  • Use one clipped, animated reveal for volume and custom hover controls. The label stays anchored while the controls reveal beside it, and neighboring widgets move aside.
  • Cover decoding/schema, inherited configuration, per-display sizing, mode styling, JSON editing and documentation. Existing configuration merging and CLI edits handle the new property.

Testing

  • Seven focused tests passed, covering intermediate reveal frames in both directions, per-display width, template inheritance, schema parity, existing volume behavior and reduced-motion resize rules.
  • Built the app bundle from the tested debug binary and verified its signature with codesign --verify --deep --strict.
  • Amphetamine package inspection, scratch installation and configuration validation passed.
  • Reviewed the user's before recording. Offscreen pixel tests cover the label and control regions throughout the reveal; ImageRenderer cannot draw the native slider itself, so these do not replace a live recording. No final live hover verification: stopped the temporary bar and session tests after the user reported sleep interruptions. The available browser is signed out, so before/after media could not be attached here.

Merging

Squash merge. The Amphetamine package update must require the app version containing this support.

gpt-6-astra via Codex in T3 Code.

@Seb-GRAF
Seb-GRAF merged commit 7fe3c45 into main Oct 22, 2026
7 checks passed
@Seb-GRAF
Seb-GRAF deleted the feat/hover-layout branch October 22, 2026 08:34
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant