组件系统
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

@@ -4,4 +4,5 @@ public static class BuiltInComponentIds
{
public const string Clock = "Clock";
public const string Blank2x4 = "Blank2x4";
public const string Date = "Date";
}

View File

@@ -29,14 +29,14 @@ public sealed class ComponentRegistry
MinWidthCells: 1,
MinHeightCells: 1,
AllowStatusBarPlacement: true,
AllowDesktopPlacement: true),
AllowDesktopPlacement: false),
new DesktopComponentDefinition(
BuiltInComponentIds.Blank2x4,
"Blank 2x4",
"Rectangle",
"Layout",
MinWidthCells: 2,
MinHeightCells: 4,
BuiltInComponentIds.Date,
"Date",
"Calendar",
"Date",
MinWidthCells: 4,
MinHeightCells: 2,
AllowStatusBarPlacement: false,
AllowDesktopPlacement: true)
};