mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-08-18 15:20:47 +08:00
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
namespace LanMountainDesktop.AirAppSdk;
|
|
|
|
/// <remarks>
|
|
/// This is the runtime snapshot shape consumed by plugins inside the host process.
|
|
/// It is intentionally distinct from the wire DTO with the same name in
|
|
/// <c>LanMountainDesktop.AirAppIsolation.Contracts.AirAppAppearanceSnapshot</c>.
|
|
/// </remarks>
|
|
public sealed record AirAppMaterialSurfaceSnapshot(
|
|
string BackgroundColor,
|
|
string BorderColor,
|
|
double BlurRadius,
|
|
double Opacity);
|
|
|
|
/// <remarks>
|
|
/// Runtime-facing appearance snapshot for plugins. This is not the same contract as the
|
|
/// wire-format snapshot in <c>LanMountainDesktop.AirAppIsolation.Contracts</c>, even though the
|
|
/// type name matches.
|
|
/// </remarks>
|
|
public sealed record AirAppAppearanceSnapshot(
|
|
AirAppCornerRadiusTokens CornerRadiusTokens,
|
|
string ThemeVariant,
|
|
string? AccentColor = null,
|
|
string? SeedColor = null,
|
|
string? ColorSource = null,
|
|
string? SystemMaterialMode = null,
|
|
IReadOnlyDictionary<string, string>? ColorRoles = null,
|
|
IReadOnlyDictionary<string, AirAppMaterialSurfaceSnapshot>? MaterialSurfaces = null,
|
|
IReadOnlyList<string>? WallpaperSeedCandidates = null);
|