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";
/// 微信原生消息提示(默认关闭)。
[ProfileProperty]
private bool enableWeChatNotifications = false;
/// QQ 原生消息提示(默认关闭)。
[ProfileProperty]
private bool enableQQNotifications = false;
/// 企业微信原生消息提示(默认关闭)。
[ProfileProperty]
private bool enableWeComNotifications = false;
static partial void SetThemeProperty(ref ElementTheme value) => AppThemeHelper.ChangeTheme(value);
}