Skip to content

fix(lockscreen): clock off-center with single hour digit - #2745

Merged
purian23 merged 1 commit into
duxlabs-dev:masterfrom
scottmckendry:lockscreen-clock-fix
Jul 4, 2026
Merged

purian23 merged 1 commit into
duxlabs-dev:masterfrom
scottmckendry:lockscreen-clock-fix

Conversation

@scottmckendry

Copy link
Copy Markdown
Contributor

Description

Fix the lockscreen clock when only one digit is visible for the hour. It was one digit-witdth off to the right.

The fix is to make the 75px space conditional on digit length. Now the clock is perfectly centered regardless of number of digits in the time.

Tested both with and without the "pad hours" setting. Both now lock visually correct. I would share a screenshot here, but I'm not able to capture a screenshot while my screen is locked 🙃

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dlx-docs to document any new behaviors: https://github.com/AvengeMedia/DankLinux-Docs

@purian23
purian23 merged commit bfda5f2 into duxlabs-dev:master Jul 4, 2026
1 check passed
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.

2 participants