using Clash.SDK; using ClashDotNetFramework.Controllers; using ClashDotNetFramework.Models; using ClashDotNetFramework.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media; namespace ClashDotNetFramework { public class Global { /// /// 换行 /// public const string EOF = "\r\n"; /// /// Clash .NET Framework文件夹位置 /// public static readonly string ClashDotNetFrameworkDir = AppDomain.CurrentDomain.BaseDirectory; /// /// Clash代理背景颜色 /// public static Color ProxyColor = Color.FromArgb((byte)Math.Round(0.9 * 255), 179, 179, 179); /// /// 随机生成的Clash控制器端口, 不会被保存 /// public static int ClashControllerPort = 0; /// /// Clash代理端口 /// public static int ClashMixedPort = 0; /// /// Clash客户端 /// public static ClashClient clashClient = null; /// /// Clash控制器 /// public static ClashController clashController = null; /// /// NetFilter控制器 /// public static NFController nfController = null; /// /// Proxies界面是否需要重新刷新 /// public static bool Refresh = true; /// /// 托盘图标控制器 /// public static NotifyIconController iconController = new NotifyIconController(); /// /// 用于读取和写入的配置 /// public static Setting Settings = new Setting(); /// /// 用于储存页面 /// public static PageCollection Pages = new PageCollection(); } }