mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
30 lines
546 B
C#
30 lines
546 B
C#
using System;
|
|
using MonoMac.Foundation;
|
|
using MonoMac.AppKit;
|
|
|
|
namespace StatusMenu
|
|
{
|
|
[Register("AppController")]
|
|
public partial class AppController : NSObject
|
|
{
|
|
public AppController()
|
|
{
|
|
|
|
}
|
|
|
|
public override void AwakeFromNib()
|
|
{
|
|
var statusItem = NSStatusBar.SystemStatusBar.CreateStatusItem(30);
|
|
statusItem.Menu = statusMenu;
|
|
statusItem.Image = NSImage.ImageNamed("f3bfd_Untitled-thumb");
|
|
statusItem.HighlightMode = true;
|
|
}
|
|
|
|
partial void HelloWorld(NSObject sender)
|
|
{
|
|
Console.WriteLine("hello world");
|
|
}
|
|
}
|
|
}
|
|
|