settings_re11

This commit is contained in:
lincube
2026-03-15 17:08:07 +08:00
parent c7fb48c8ee
commit f83c6ede1d
49 changed files with 3243 additions and 815 deletions

View File

@@ -16,6 +16,12 @@ public sealed class AppSettingsSnapshot
public bool UseSystemChrome { get; set; }
public string ThemeColorMode { get; set; } = "default_neutral";
public string SystemMaterialMode { get; set; } = "none";
public string? SelectedWallpaperSeed { get; set; }
public string? WallpaperPath { get; set; }
public string WallpaperType { get; set; } = "Image";
@@ -60,6 +66,10 @@ public sealed class AppSettingsSnapshot
public bool IncludePrereleaseUpdates { get; set; }
public bool UploadAnonymousCrashData { get; set; }
public bool UploadAnonymousUsageData { get; set; }
public string UpdateChannel { get; set; } = "stable";
public string UpdateMode { get; set; } = "download_then_confirm";

View File

@@ -1,8 +1,49 @@
using System.Collections.Generic;
using System.Collections.Generic;
using Avalonia.Media;
namespace LanMountainDesktop.Models;
public sealed record MonetPalette(
IReadOnlyList<Color> RecommendedColors,
IReadOnlyList<Color> MonetColors);
public sealed record MonetPalette
{
public MonetPalette(
IReadOnlyList<Color> recommendedColors,
Color seed,
Color primary,
Color secondary,
Color tertiary,
Color neutral,
Color neutralVariant)
{
RecommendedColors = recommendedColors;
Seed = seed;
Primary = primary;
Secondary = secondary;
Tertiary = tertiary;
Neutral = neutral;
NeutralVariant = neutralVariant;
MonetColors =
[
primary,
secondary,
tertiary,
neutral,
neutralVariant
];
}
public IReadOnlyList<Color> RecommendedColors { get; }
public IReadOnlyList<Color> MonetColors { get; }
public Color Seed { get; }
public Color Primary { get; }
public Color Secondary { get; }
public Color Tertiary { get; }
public Color Neutral { get; }
public Color NeutralVariant { get; }
}