jaredks / rumps

Ridiculously Uncomplicated macOS Python Statusbar apps
BSD 3-Clause "New" or "Revised" License
3.06k stars 177 forks source link

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

Open carlos1172 opened 1 year ago

carlos1172 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Great idea. I'll try that

Regards, Carlos Miguel C. Resurreccion On May 2, 2023 at 5:42 PM +0800, Simon Brunning @.***>, wrote:

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? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>