-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAppMenu.cs
52 lines (50 loc) · 1.71 KB
/
AppMenu.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using Avalonia.Controls;
using Material.Icons.Avalonia;
using Material.Icons;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AI.Chat.Copilot
{
/// <summary>
/// 菜单
/// </summary>
/// <param name="title"></param>
/// <param name="icon"></param>
/// <param name="useControlType"></param>
public static class AppMenu
{
public static SideMenuItem Index() => new SideMenuItem
{
PageContent = typeof(Index),
Header = "首页",
Icon = new MaterialIcon { Kind = MaterialIconKind.HomeCircle,Width = 25,Height=25 },
};
public static SideMenuItem Chat() => new SideMenuItem
{
PageContent = typeof(Chat),
Header = "会话",
Icon = new MaterialIcon { Kind = MaterialIconKind.MessageOutline, Width = 25, Height = 25 },
};
public static SideMenuItem App() => new SideMenuItem
{
PageContent = typeof(Applications),
Header = "应用",
Icon = new MaterialIcon { Kind = MaterialIconKind.GamepadCircleOutline, Width = 25, Height = 25 }
};
public static SideMenuItem GlobalSettings() => new SideMenuItem
{
PageContent = typeof(GlobalSettings),
Header = "设置",
Icon = new MaterialIcon { Kind = MaterialIconKind.CogOutline, Width = 25, Height = 25 }
};
public static SideMenuItem Models() => new SideMenuItem
{
PageContent = typeof(Models),
Header = "模型",
Icon = new MaterialIcon { Kind = MaterialIconKind.Brain, Width = 25, Height = 25 }
};
}
}