mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-24 02:14:26 +08:00
0.1.5
This commit is contained in:
30
LanMontainDesktop/Models/AppSettingsSnapshot.cs
Normal file
30
LanMontainDesktop/Models/AppSettingsSnapshot.cs
Normal 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";
|
||||
}
|
||||
8
LanMontainDesktop/Models/TaskbarActionId.cs
Normal file
8
LanMontainDesktop/Models/TaskbarActionId.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace LanMontainDesktop.Models;
|
||||
|
||||
public enum TaskbarActionId
|
||||
{
|
||||
MinimizeToWindows,
|
||||
OpenSettings
|
||||
}
|
||||
|
||||
9
LanMontainDesktop/Models/TaskbarActionItem.cs
Normal file
9
LanMontainDesktop/Models/TaskbarActionItem.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace LanMontainDesktop.Models;
|
||||
|
||||
public sealed record TaskbarActionItem(
|
||||
TaskbarActionId Id,
|
||||
string Title,
|
||||
string IconKey,
|
||||
bool IsVisible,
|
||||
string CommandKey);
|
||||
|
||||
10
LanMontainDesktop/Models/TaskbarContext.cs
Normal file
10
LanMontainDesktop/Models/TaskbarContext.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace LanMontainDesktop.Models;
|
||||
|
||||
public enum TaskbarContext
|
||||
{
|
||||
Desktop,
|
||||
SettingsWallpaper,
|
||||
SettingsGrid,
|
||||
SettingsColor,
|
||||
SettingsStatusBar
|
||||
}
|
||||
Reference in New Issue
Block a user