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

Make app title display content split to two lines. #204

Open
carlos1172 opened this issue Apr 30, 2023 · 2 comments
Open

Make app title display content split to two lines. #204

carlos1172 opened this issue Apr 30, 2023 · 2 comments

Comments

@carlos1172
Copy link

Hello, I'm trying to write an app whose title is two lines in the menu bar to save space. is this possible?

`import rumps

class TwoLineTitleApp(rumps.App):
def init(self):
super(TwoLineTitleApp, self).init("Two Line\nTitle App")
# Set the menu items
self.menu = ["Item 1", "Item 2"]

if name == "main":
app = TwoLineTitleApp()
app.run()
`

@brunns
Copy link

brunns commented May 2, 2023

As far as I can tell, apps which show 2 lines of text in the Mac menu bar are actually creating images and showing those. Perhaps you can dynamically create an image and set the app's icon to that?

@carlos1172
Copy link
Author

carlos1172 commented May 2, 2023 via email

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