This commit is contained in:
lincube
2026-02-28 03:00:25 +08:00
parent 4ded1c1f20
commit b224f07e69
17 changed files with 2136 additions and 870 deletions

View File

@@ -0,0 +1,30 @@
using System.Collections.Generic;
namespace LanMontainDesktop.Models;
public sealed class AppSettingsSnapshot
{
public int GridShortSideCells { get; set; } = 12;
public bool? IsNightMode { get; set; }
public string? ThemeColor { get; set; }
public string? WallpaperPath { get; set; }
public string WallpaperPlacement { get; set; } = "Fill";
public int SettingsTabIndex { get; set; } = 0;
public List<string> TopStatusComponentIds { get; set; } = [];
public List<string> PinnedTaskbarActions { get; set; } =
[
TaskbarActionId.MinimizeToWindows.ToString(),
TaskbarActionId.OpenSettings.ToString()
];
public bool EnableDynamicTaskbarActions { get; set; } = false;
public string TaskbarLayoutMode { get; set; } = "BottomFullRowMacStyle";
}

View File

@@ -0,0 +1,8 @@
namespace LanMontainDesktop.Models;
public enum TaskbarActionId
{
MinimizeToWindows,
OpenSettings
}

View File

@@ -0,0 +1,9 @@
namespace LanMontainDesktop.Models;
public sealed record TaskbarActionItem(
TaskbarActionId Id,
string Title,
string IconKey,
bool IsVisible,
string CommandKey);

View File

@@ -0,0 +1,10 @@
namespace LanMontainDesktop.Models;
public enum TaskbarContext
{
Desktop,
SettingsWallpaper,
SettingsGrid,
SettingsColor,
SettingsStatusBar
}