fyne-io / systray

a cross platfrom Go library to place an icon and menu in the notification area
Apache License 2.0
223 stars 41 forks source link

Way to add Title above Quit in Windows demo? #57

Open lonnietc opened 11 months ago

lonnietc commented 11 months ago

Hello,

I here a way to add a "Title" that you cannot move the mouse over above the "Quit" in the example?

Thanks

lonnietc commented 11 months ago

Also, what about changing Text Fonts as well as Text Color foreground and background for a menu item?

andydotxyz commented 11 months ago

Hello,

I here a way to add a "Title" that you cannot move the mouse over above the "Quit" in the example?

Thanks

Do you mean a tooltip?

matwachich commented 11 months ago

I understand something like thisScreenshot_20230909_210439_com.brave.browser.jpg

lonnietc commented 11 months ago

Yes, like the above is what I am seeking to do from the systray. I am guessing that the above image was not down with the Systray / Fyne library, but that would be awesome for my needs.

I will have a "Status" header that will show GREEN text if connected to the network, and RED if disconnected as one of the indicators, plus some others as well.

Thanks again and have a great day.

andydotxyz commented 11 months ago

Support for custom content is not included because some OS don't support putting that in the menu structure.

You could use this library to handle just the icon and pop up a custom window which contains anything you want though...

lonnietc commented 11 months ago

Thanks and I will look into that more.