feat(projects): support theme preset function.

This commit is contained in:
Azir-11
2025-08-21 19:14:15 +08:00
committed by Soybean
parent d73111116a
commit 257f1183fc
11 changed files with 588 additions and 4 deletions

12
src/typings/app.d.ts vendored
View File

@ -367,6 +367,7 @@ declare namespace App {
appearance: string;
layout: string;
general: string;
preset: string;
};
appearance: {
themeSchema: { title: string } & Record<UnionKey.ThemeScheme, string>;
@ -378,6 +379,17 @@ declare namespace App {
} & Theme.ThemeColor;
recommendColor: string;
recommendColorDesc: string;
preset: {
title: string;
apply: string;
applySuccess: string;
[key: string]:
| {
name: string;
desc: string;
}
| string;
};
};
layout: {
layoutMode: { title: string } & Record<UnionKey.ThemeLayoutMode, string> & {