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

Use fixed-width digits #112

Closed
ryandesign opened this issue Sep 15, 2022 · 6 comments
Closed

Use fixed-width digits #112

ryandesign opened this issue Sep 15, 2022 · 6 comments

Comments

@ryandesign
Copy link

Clocker is evidently using standard proportional-width digits such that the width varies depending on the time. This is especially apparent if you show the seconds.

If my menubar is especially full of regular menus and menu extras, I've seen it happen that a menu extra will appear and disappear from second to second depending on the time as more or less space becomes available. This is distracting.

Apple's clock doesn't have this problem.

Clocker should ask for fixed-width digits. (monospacedDigitSystemFontOfSize:weight:?)

@n0shake
Copy link
Owner

n0shake commented Sep 28, 2022

@ryandesign - Clocker does use a monospaced font for rendering the time:

return NSFont.monospacedDigitSystemFont(ofSize: 10, weight: .regular)

The issue you're describing is most likely happening due to incorrect sizing logic calculation for the container view that renders the menubar item.

@n0shake n0shake closed this as completed Oct 2, 2022
@ryandesign
Copy link
Author

I see you closed this issue but I don't see any new commits in this repository since I opened this issue. How was the issue fixed?

@n0shake
Copy link
Owner

n0shake commented Oct 24, 2022

There's a seperate issue tracking this: #102

@ryandesign
Copy link
Author

#102 does not look like my issue. I'm not using multiple clocks, and I'm on Catalina, not Monterey.

@ryandesign
Copy link
Author

This is the problem I'm reporting:

out

@ryandesign
Copy link
Author

Could you reopen this issue, please?

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

No branches or pull requests

2 participants