Repository navigation
Window: round the frame, center the controls and keep zoom - #808
Open
divyanshudhruv wants to merge 3 commits into
Open
divyanshudhruv wants to merge 3 commits into
divyanshudhruv wants to merge 3 commits into
Conversation
Open
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.
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
8106f968ecommit 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
What / Solution
Rounded corners:panes, fades, sidebar and file tree no longer square the window corners.Panel border:real1px borderinstead of a shadow. New setting"Panel Border Width (px)",0-5.Window controls:centeredon the title strip. Upstream press and drag code untouched.Search button:toggle.X iconand pressed state when open. Click again to close and return.Zoom:saved as apercentage.5%steps from50-300, reset to100%, old values migrated. Dead editor zoom code removed.Settings card radiusfollows the border width.Before / After
Media
Whole windowwhole1.mp4
whole2.mp4
Window cornersWindow controlsSearch buttonZoomSummary
Window cornersPanel border0-5 px, radius tracks widthWindow controlsSearch buttonX iconand pressed state, click again to closeZoom5% ladder 50-300, reset 100%Issues
Testing
cargo checkon touched crates:PASScargo test -p ui --lib,-p settings --lib:PASScargo check --target wasm32-unknown-unknown -p athas_web:PASScorners, title bar, border widths, zoom persistence