Repository navigation
Conversation
- Consolidated the L-shaped border path logic into a reusable function for improved clarity and maintainability. - Updated the drawing methods in GroupedRulerContentView to utilize the new path function, enhancing performance and readability. - Introduced a background drawing toggle in RuleView, allowing for more flexible rendering of the horizontal and vertical rulers. - Adjusted offset calculations in HorizontalRule and VerticalRule to ensure consistent ruler rendering.
- Added conditional compilation to suspend and resume mouse tick updates during resizing, improving UI responsiveness. - Updated appDelegate access to be conditional, ensuring compatibility with snapshot generation.
Owner
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. This stack of pull requests is managed by Graphite. Learn more about stacking. |
pascalpp
marked this pull request as ready for review
June 16, 2026 14:07
pascalpp
added a commit
that referenced
this pull request
Jun 17, 2026
* Add grouped ruler functionality and UI enhancements - Introduced GroupedRulerController to manage grouped ruler windows. - Implemented logic to toggle between grouped and separate ruler modes. - Enhanced ruler drawing to support zero ticks and improved mouse tick handling. - Added localized string for "Grouped Rulers" window title. - Updated UI components to reflect new grouped ruler features, including border views and visibility handling for unit labels and ticks. * Implement ruler visibility management and UI updates - Introduced RulerVisibility struct to manage the visibility state of horizontal and vertical rulers. - Updated ruler display logic to utilize the new visibility management, allowing for toggling and grouping of rulers. - Enhanced GroupedRulerWindow to reflect visibility changes in the UI, including dynamic updates to border views and unit labels. - Refactored ResizeHandleView to accommodate orientation-specific adjustments for ruler handles. * Refactor ResizeHandleView for improved placement logic - Adjusted y and x coordinate calculations for resize handles to account for horizontal and vertical offsets, background padding, and handle lengths. - Simplified control flow by consolidating placement logic for both top/bottom and left/right orientations, enhancing clarity and maintainability. * Enhance mouse tick management and UI responsiveness - Introduced functionality to suppress and unsuppress mouse tick drawing based on user interactions, improving UI responsiveness during ruler resizing and hovering. - Updated mouse event handling in RulerController and ResizeHandleView to manage mouse tick visibility dynamically. - Added tracking area for corner interactions in GroupedRulerContentView to enhance user experience. - Implemented snapshot tests for grouped ruler window layout to ensure visual consistency. * Add grouped ruler layout tests and snapshot generation - Implemented multiple tests for the GroupedRulerLayout, ensuring correct frame calculations and layout behavior for different zero corners. - Added a test for the GroupedRulerContentView to verify layout and hit testing functionality. - Enhanced the GroupedRulerController to manage mouse tick visibility based on the active ruler legs. - Introduced a new snapshot image for the grouped ruler window layout to support visual regression testing. - Updated the snapshot generation script to include the GroupedRulerWindow in the compilation process. * Address grouped ruler frame persistence feedback * Simplify flip hotkey bezels * Address grouped single-leg review feedback * Assert grouped window shrinks to visible leg * Update App Store Screenshots (#227) * Refactor grouped ruler path calculations and enhance drawing logic - Consolidated the L-shaped border path logic into a reusable function for improved clarity and maintainability. - Updated the drawing methods in GroupedRulerContentView to utilize the new path function, enhancing performance and readability. - Introduced a background drawing toggle in RuleView, allowing for more flexible rendering of the horizontal and vertical rulers. - Adjusted offset calculations in HorizontalRule and VerticalRule to ensure consistent ruler rendering. * Enhance mouse tick management in ResizeHandleView - Added conditional compilation to suspend and resume mouse tick updates during resizing, improving UI responsiveness. - Updated appDelegate access to be conditional, ensuring compatibility with snapshot generation. * Update AppStoreScreenshotPreview.swift * Update AppStoreScreenshotPreview.swift * Update AppStoreScreenshotPreview.swift * Update RulerCoreTests.swift * update store screenshots * update test snapshots * Update HorizontalRule.swift * Update project.pbxproj * Update AppStoreScreenshotPreview.swift * Update 03-groups.png * Address grouped ruler review feedback * Stabilize color panel UI test
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.

Closes #226
Refactor grouped ruler path calculations and enhance drawing logic
Enhance mouse tick management in ResizeHandleView
Update AppStoreScreenshotPreview.swift
Update AppStoreScreenshotPreview.swift
Update AppStoreScreenshotPreview.swift
Update RulerCoreTests.swift
update store screenshots
update test snapshots