using XFEExtension.NetCore.AutoConfig; using XFEExtension.NetCore.WinUIHelper.Utilities.Helper; namespace HaloPixelToolBox.Client.Profiles.CrossVersionProfiles; public partial class SystemProfile : XFEProfile { public SystemProfile() => ProfilePath = $@"{AppPathHelper.LocalProfile}\{nameof(SystemProfile)}"; /// /// 主题颜色 /// [ProfileProperty] private ElementTheme theme = ElementTheme.Default; /// /// 是否自动启动 /// [ProfileProperty] private bool autoStart = false; /// /// 启动时最小化到托盘 /// [ProfileProperty] private bool minimizeWhenOpen = false; /// /// 关闭时最小化到托盘 /// [ProfileProperty] private bool minimizeWhenClose = true; /// /// 关闭时不再询问 /// [ProfileProperty] private bool neverAskAgainWhenClose = false; /// /// 忽略的版本号 /// [ProfileProperty] private string ignoreVersion = string.Empty; /// /// 动态解析地址服务器 /// [ProfileProperty] private string serverAddress = HaloPixelToolBox.Core.Utilities.DataManager.DefaultRequestAddress; /// /// 默认启动页面 /// [ProfileProperty] private string defaultPage = "CloudMusicLyricsToolPage"; static partial void SetThemeProperty(ref ElementTheme value) => AppThemeHelper.ChangeTheme(value); }