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

Separate multi labeled pins for better readability #687

Merged
merged 3 commits into from Sep 9, 2022
Merged

Separate multi labeled pins for better readability #687

merged 3 commits into from Sep 9, 2022

Conversation

oxplot
Copy link
Contributor

@oxplot oxplot commented Sep 2, 2022

Initial discussion on discourse.

Currently, when showing multiple alternate pin names, they are separated by a single space on the schematics:

image

This is somewhat difficult to read at times and may be mistaken in some scenarios as a single label. This PR adds unicode MIDDLE DOT as a visual separator between the labels:

Screenshot from 2022-09-02 17-34-56

@carrotIndustries
Copy link
Member

That's is indeed more readable than just a single space. There are some other code paths, most notably for the "all" pin display mode, that also need to be changed to match the new style in SchematicSymbol::apply_pin_names.

@carrotIndustries
Copy link
Member

LGTM apart from the failing style check.

Using MIDDLE DOT unicode code point U+B7 '·' as separator.
@carrotIndustries
Copy link
Member

Sorry, just one more thing: How about factoring the separator out into a string constant?

Co-authored-by: Lukas K. <carrotIndustries@users.noreply.github.com>
@carrotIndustries carrotIndustries merged commit a695705 into horizon-eda:master Sep 9, 2022
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.

None yet

2 participants