using XFEExtension.NetCore.AutoConfig; using XFEExtension.NetCore.WinUIHelper.Utilities; using XFEExtension.NetCore.WinUIHelper.Utilities.Helper; namespace XFENewsApplication.Profiles.CrossVersionProfiles; public partial class SystemProfile : XFEProfile { public SystemProfile() => ProfilePath = $@"{AppPathHelper.LocalProfile}\{nameof(SystemProfile)}"; /// /// 主题颜色 /// [ProfileProperty] private ElementTheme theme = ElementTheme.Default; /// /// 侧边栏距离 /// [ProfileProperty] private double sideBarWidth = 450; /// /// 是否自动启动 /// [ProfileProperty] private bool autoStart = false; /// /// 是否显示预览图 /// [ProfileProperty] private bool showPreviewImage = false; static partial void SetThemeProperty(ref ElementTheme value) => AppThemeHelper.ChangeTheme(value); }