XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEWorkflow

【WinUI】XFE基于windows的工作流

公开
关注 0 Fork 0 Star 0
UTF-8
using XFEExtension.NetCore.AutoConfig;
using XFEExtension.NetCore.WinUIHelper.Utilities.Helper;

namespace XFEWorkflow.Profiles.CrossVersionProfiles
{
    public partial class SystemProfile : XFEProfile
    {
        public SystemProfile() => ProfilePath = $@"{AppPathHelper.LocalProfile}\{nameof(SystemProfile)}";

        /// <summary>
        /// 主题颜色
        /// </summary>
        [ProfileProperty]
        public static partial ElementTheme Theme { get; set; } = ElementTheme.Default;
        /// <summary>
        /// 是否自动启动
        /// </summary>
        [ProfileProperty]
        public static partial bool AutoStart { get; set; }

        static partial void SetThemeProperty(ref ElementTheme value) => AppThemeHelper.ChangeTheme(value);
    }
}