tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
81.82k stars 2.45k forks source link

[feat] Ability to set SystemTray font to monospace #6537

Open ajwaxman opened 1 year ago

ajwaxman commented 1 year ago

Describe the problem

I'm building a macOS menubar timer app, and would love for the seconds to change without shifting the layout of the SystemTray title. This would be similar to Electron's tray.setTitle functionality: https://www.electronjs.org/docs/latest/api/tray#traysettitletitle-options-macos

Describe the solution you'd like

No strong preference on how it's implemented. My first thought would be to add an optional fontType parameter to the with_title and set_title functions, with monospace as an accepted value

Alternatives considered

No response

Additional context

No response

OceanBelongsToMe commented 1 year ago

same request!!!