Files

33 lines
1011 B
C#
Raw Permalink Normal View History

2026-08-11 23:03:55 +08:00
namespace LanMountainDesktop.AirAppSdk;
2026-03-20 22:37:37 +08:00
2026-08-11 23:03:55 +08:00
public sealed class AirAppComponentOptions
2026-03-20 22:37:37 +08:00
{
public required string ComponentId { get; init; }
public required string DisplayName { get; init; }
public string IconKey { get; init; } = "PuzzlePiece";
2026-08-11 23:03:55 +08:00
public string Category { get; init; } = "AirApps";
2026-03-20 22:37:37 +08:00
public int MinWidthCells { get; init; } = 2;
public int MinHeightCells { get; init; } = 2;
public bool AllowDesktopPlacement { get; init; } = true;
public bool AllowStatusBarPlacement { get; init; }
2026-08-11 23:03:55 +08:00
public AirAppComponentResizeMode ResizeMode { get; init; } = AirAppComponentResizeMode.Proportional;
2026-03-20 22:37:37 +08:00
public string? DisplayNameLocalizationKey { get; init; }
2026-06-07 00:40:48 +08:00
public string? Description { get; init; }
public string? DescriptionLocalizationKey { get; init; }
2026-08-11 23:03:55 +08:00
public AirAppCornerRadiusPreset CornerRadiusPreset { get; init; } = AirAppCornerRadiusPreset.Default;
2026-03-20 22:37:37 +08:00
2026-08-11 23:03:55 +08:00
public Func<IAirAppAppearanceContext, double, double>? CornerRadiusResolver { get; init; }
2026-03-20 22:37:37 +08:00
}