Skip to content

Window: round the frame, center the controls and keep zoom - #808

Open
divyanshudhruv wants to merge 3 commits into
athasdev:mainfrom
divyanshudhruv:fix/window-frame-and-titlebar
Open

divyanshudhruv wants to merge 3 commits into
athasdev:mainfrom
divyanshudhruv:fix/window-frame-and-titlebar

Conversation

@divyanshudhruv

@divyanshudhruv divyanshudhruv commented Nov 24, 2026 •

Copy link
Copy Markdown

TL;DR

Clean rounded corners, a real 0-5 px border, centered window controls, a toggleable Search button, and zoom that survives restart in 5% steps.

Short description

I came across the title-bar click bug while using Athas and fixed it locally, along with rounded corners, a configurable panel border, centered window controls, a Search toggle, and zoom saved as a percentage. Then I saw upstream's 8106f968e commit fixing the same title-bar press issue. I rebased onto it, kept their drag and press handling, dropped my duplicate fix, and reapplied the rest on top. This PR is the result.

Problems

  • Panes, scroll fades, the sidebar and the file tree painted over the rounded window corners.
  • A shadow around the panel read like a thick, uneven border, and there was no way to set its width.
  • Minimize, maximize and close sat off-centre on the title strip.
  • Search opened a view but gave no visual state and no way to close it from the button.
  • Zoom reset on restart and moved in uneven steps.

What / Solution

  • Rounded corners: panes, fades, sidebar and file tree no longer square the window corners.
  • Panel border: real 1px border instead of a shadow. New setting "Panel Border Width (px)", 0-5.
  • Window controls: centered on the title strip. Upstream press and drag code untouched.
  • Search button: toggle. X icon and pressed state when open. Click again to close and return.
  • Zoom: saved as a percentage. 5% steps from 50-300, reset to 100%, old values migrated. Dead editor zoom code removed.
  • Settings card radius follows the border width.

Before / After

Media

Area Before After
Whole window
whole1.mp4
whole2.mp4
Window corners Before: corner overflow After: rounded corner
Window controls Before: off-centre controls After: centered controls
Search button Before: static search icon After: X icon when active
Zoom Before: zoom resets After: zoom persists

Summary

Area Before After
Window corners Fades and panes painted over rounded corners Clipped cleanly at all four corners
Panel border Shadow read like a thick border Real 1px border, 0-5 px, radius tracks width
Window controls Off-centre on title strip Centered, upstream press fix retained
Search button Static magnifier, no toggle X icon and pressed state, click again to close
Zoom Reset on restart, uneven steps Persisted %, 5% ladder 50-300, reset 100%

Issues

Testing

  • cargo check on touched crates: PASS
  • cargo test -p ui --lib, -p settings --lib: PASS
  • cargo check --target wasm32-unknown-unknown -p athas_web: PASS
  • Manual before/after media attached: corners, title bar, border widths, zoom persistence
  • I have read the Contributor License and Feedback Agreement and agree to it for this and my later contributions.

@divyanshudhruv divyanshudhruv mentioned this pull request Nov 24, 2026
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.

On windows

1 participant