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

Center LED text in display and adjust font size #675

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

Amadeus1791
Copy link
Contributor

This PR addresses two issues with the LED text display:

  • Misaligned text: Introduced dynamic positioning (including padding and offset constants) to ensure the text is centered within the display rectangle.
  • Oversized font: Reduced the font size from 38 to 23 to ensure the displayed number does not appear too large.

Before: (on 3840x2160 resolution, 150%scaling, Windows)
2025-01-19 13_29_39-runtime-EclipseApplication(1) - test_fourBitAdder21 logic - Eclipse IDE

After:
2025-01-19 14_41_26-runtime-EclipseApplication(1) - test_fourBitAdder21 logic - Eclipse IDE

Copy link
Contributor

@azoitl azoitl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks also good on a normal laptop screen with 100% native scaling on Linux/GTK.

@azoitl azoitl merged commit 0721054 into eclipse-gef:master Jan 19, 2025
14 checks passed
@ptziegler ptziegler added this to the 3.23.0 milestone Jan 22, 2025
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.

4 participants