using XFEExtension.NetCore.AutoConfig; using XFEExtension.NetCore.WinUIHelper.Utilities.Helper; namespace LogiBoardToolBox.Profiles.CrossVersionProfiles { public partial class SystemProfile : XFEProfile { public SystemProfile() { JsonOptions.TypeInfoResolver = ProfileJsonContext.Default; ProfilePath = $@"{AppPathHelper.LocalProfile}\{nameof(SystemProfile)}"; } /// /// 主题颜色 /// [ProfileProperty] public static partial ElementTheme Theme { get; set; } = ElementTheme.Default; /// /// 是否自动启动 /// [ProfileProperty] public static partial bool AutoStart { get; set; } static partial void SetThemeProperty(ref ElementTheme value) => AppThemeHelper.ChangeTheme(value); } }