mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-21 16:14:28 +08:00
0.19
This commit is contained in:
@@ -29,4 +29,8 @@ public sealed class AppSettingsSnapshot
|
||||
public bool EnableDynamicTaskbarActions { get; set; } = false;
|
||||
|
||||
public string TaskbarLayoutMode { get; set; } = "BottomFullRowMacStyle";
|
||||
|
||||
public int DesktopPageCount { get; set; } = 1;
|
||||
|
||||
public int CurrentDesktopSurfaceIndex { get; set; } = 0;
|
||||
}
|
||||
|
||||
12
LanMontainDesktop/Models/StartMenuAppEntry.cs
Normal file
12
LanMontainDesktop/Models/StartMenuAppEntry.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace LanMontainDesktop.Models;
|
||||
|
||||
public sealed class StartMenuAppEntry
|
||||
{
|
||||
public required string DisplayName { get; init; }
|
||||
|
||||
public required string FilePath { get; init; }
|
||||
|
||||
public required string RelativePath { get; init; }
|
||||
|
||||
public byte[]? IconPngBytes { get; init; }
|
||||
}
|
||||
24
LanMontainDesktop/Models/StartMenuFolderNode.cs
Normal file
24
LanMontainDesktop/Models/StartMenuFolderNode.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace LanMontainDesktop.Models;
|
||||
|
||||
public sealed class StartMenuFolderNode
|
||||
{
|
||||
public StartMenuFolderNode(string name, string relativePath)
|
||||
{
|
||||
Name = name;
|
||||
RelativePath = relativePath;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
|
||||
public string RelativePath { get; }
|
||||
|
||||
public List<StartMenuFolderNode> Folders { get; } = [];
|
||||
|
||||
public List<StartMenuAppEntry> Apps { get; } = [];
|
||||
|
||||
public int TotalAppCount => Apps.Count + Folders.Sum(folder => folder.TotalAppCount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user