using XFEExtension.NetCore.AutoConfig;
using XFEToolBox.Core.Model;
namespace XFEToolBox.Client.Profiles.CrossVersionProfiles;
public partial class SystemProfile : XFEProfile
{
///
/// 当前窗口DPI缩放
///
[ProfileProperty]
private double currentWindowDPIScale = 1.0;
///
/// 主窗体宽度
///
[ProfileProperty]
private double mainWindowWidth = 720;
///
/// 主窗体高度
///
[ProfileProperty]
private double mainWindowHeight = 450;
///
/// 是否开机自启动
///
[ProfileProperty]
private bool autoSelfLaunch = false;
///
/// 是否是以最大化启动
///
[ProfileProperty]
private bool startWithMaximize = false;
///
/// 最近登录的账号。
///
[ProfileProperty]
private string lastLoginAccount = string.Empty;
///
/// 可用于自动重登的会话令牌。
///
[ProfileProperty]
private string loginSession = string.Empty;
///
/// 是否已经完成或主动跳过主窗口首次使用教程。
///
[ProfileProperty]
private bool mainTutorialCompleted = false;
///
/// 是否在主窗口首次加载后自动检查新版本。
///
[ProfileProperty]
private bool checkForUpdatesOnStartup = true;
///
/// 用户选择忽略的升级版本。
///
[ProfileProperty]
private string ignoredUpgradeVersion = string.Empty;
///
/// 最近使用页面、工具和软件的 JSON 记录,由 RecentUsageService 维护。
///
[ProfileProperty]
private string recentUsageJson = string.Empty;
///
/// 固定到主页和命令面板的入口。
///
[ProfileProperty]
private string pinnedItemsJson = string.Empty;
///
/// 系统级命令面板快捷键。
///
[ProfileProperty]
private string launcherHotkey = "Ctrl+Alt+Space";
///
/// 是否注册系统级命令面板快捷键。
///
[ProfileProperty]
private bool launcherHotkeyEnabled = true;
///
/// 关闭主窗口时是否继续在托盘运行。
///
[ProfileProperty]
private bool closeToTray = true;
///
/// 是否已经显示过首次最小化到托盘的说明。
///
[ProfileProperty]
private bool trayCloseHintShown = false;
///
/// 聊天页是否使用单栏会话布局。默认保留列表和消息并列的双栏布局。
///
[ProfileProperty]
private bool chatSinglePaneMode = false;
///
/// 已开启消息免打扰的群聊 ID(JSON 数组)。
///
[ProfileProperty]
private string chatMutedGroupIdsJson = "[]";
public SystemProfile() => ProfilePath = @$"{AppPath.LocalProfile}\{typeof(SystemProfile)}.xprofile";
///
/// 工具箱现在是否可以被关闭
///
public static bool CanClosed { get; set; }
}