Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add width-aligned Display impl for RoundedRect #419

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eugenesvk
Copy link

Vertically aligned even logs with proportional fonts, see line 2 vs the typical line 1 below (due to figure-width spaces in padding):

rectlog

Max condensed:

  • ▢ instead of RoundedRect {}
  • Fractionals are discarded and left for the more verbose Debug variant
  • 3 (,) symbols replaced with 1 arrow indicating both () connection between numbers and x/y direction

Visually follows how a rect is drawn: horizontal side (→), vertical side (↓), ⌜ corner radii (couldn't find rounded corners, so unfortunately have to use ⌜)

Max condensed:
- ▢ instead of RoundedRect {}
- Fractionals are discarded and left for the more verbose Debug variant
- 3 `(,)` symbols replaced with 1 `→` arrow indicating both `()` connection between numbers and x/y direction

Visually follows how a rect  is drawn: horizontal side (→), vertical side (↓), ⌜ corner radii (couldn't find rounded corners, so unfortunately have to use ⌜)

Padding is with figure-width spaces so that " 1" is as wide as "21" even outside the monospaced terminals, which helps in aligning multiple lines to find a difference

"▢  1→25  1↓17 24⋅16 ½⌀ ⌜ 4 ⌝ 4 ⌞ 4 ⌟ 4"
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