组件系统
This commit is contained in:
lincube
2026-03-01 16:50:06 +08:00
parent f0e44c0f87
commit 87f47e1887
20 changed files with 3312 additions and 201 deletions

View File

@@ -18,6 +18,8 @@ public sealed class AppSettingsSnapshot
public string LanguageCode { get; set; } = "zh-CN";
public string? TimeZoneId { get; set; }
public List<string> TopStatusComponentIds { get; set; } = [];
public List<string> PinnedTaskbarActions { get; set; } =
@@ -33,4 +35,6 @@ public sealed class AppSettingsSnapshot
public int DesktopPageCount { get; set; } = 1;
public int CurrentDesktopSurfaceIndex { get; set; } = 0;
public List<DesktopComponentPlacementSnapshot> DesktopComponentPlacements { get; set; } = [];
}

View File

@@ -0,0 +1,18 @@
namespace LanMontainDesktop.Models;
public sealed class DesktopComponentPlacementSnapshot
{
public string PlacementId { get; set; } = string.Empty;
public int PageIndex { get; set; }
public string ComponentId { get; set; } = string.Empty;
public int Row { get; set; }
public int Column { get; set; }
public int WidthCells { get; set; } = 1;
public int HeightCells { get; set; } = 1;
}

View File

@@ -3,6 +3,6 @@ namespace LanMontainDesktop.Models;
public enum TaskbarActionId
{
MinimizeToWindows,
OpenSettings
OpenSettings,
AddDesktopPage
}