mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
add mac files
This commit is contained in:
29
MediaBrowser.Server.Mac/AppController.cs
Normal file
29
MediaBrowser.Server.Mac/AppController.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user