rumps icon indicating copy to clipboard operation
rumps copied to clipboard

Make app title display content split to two lines.

Open carlos1172 opened this issue 1 year ago • 2 comments

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() `

carlos1172 avatar Apr 30 '23 08:04 carlos1172

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?

brunns avatar May 02 '23 09:05 brunns

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: @.***>

carlos1172 avatar May 02 '23 10:05 carlos1172