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

Fluctuating width of the System tray #79

Open
1 of 2 tasks
sdr0x07b6 opened this issue Jul 25, 2023 · 1 comment
Open
1 of 2 tasks

Fluctuating width of the System tray #79

sdr0x07b6 opened this issue Jul 25, 2023 · 1 comment

Comments

@sdr0x07b6
Copy link

sdr0x07b6 commented Jul 25, 2023

Is your feature request related to a problem? Please describe.

I am creating a timer application system tray for macOS.
I use set_title() to display the time remaining.

Because the width of each number is different, the width of the System tray changes each time it is dynamically updated. The position of the System tray to the left of the timer is also affected by all of this.

Describe the solution you'd like

I don't understand how far the OS can go in terms of potential. However, if I were to mention just a few things that immediately come to mind,

  • Allow monospace fonts to be specified
  • Fixed widths for the System tray itself

Can you think of anything else?

I looked for articles like this one.
https://developer.apple.com/forums/thread/21474

Describe alternatives you've considered

None in particular

Would you want to assign yourself to implement this feature?

  • Yes
  • No

Additional context

Fluctuating.width.mov
@amrbashir
Copy link
Member

AS this can't be added to tauri v1, I will move it to https://github.com/tauri-apps/tray-icon where it will land in v2

@amrbashir amrbashir transferred this issue from tauri-apps/tao Aug 10, 2023
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