新增全局deno.json和deno.lock文件,删除客户端特定的deno配置,优化主题设置页面的配色方案逻辑,提升代码可维护性和用户体验。

This commit is contained in:
zyh
2025-04-10 16:37:35 +00:00
parent d7086317d1
commit 1ebac64cd1
9 changed files with 85 additions and 1166 deletions

View File

@@ -84,6 +84,14 @@ export enum CompactMode {
COMPACT = 1 // 紧凑模式
}
// 颜色方案类型
export interface ColorScheme {
name: string;
primary: string;
background: string;
text: string;
}
// 主题设置类型
export interface ThemeSettings {
/** 主键ID */
@@ -95,6 +103,9 @@ export interface ThemeSettings {
/** 主题模式(light/dark) */
theme_mode: ThemeMode;
/** 主题方案名称 */
scheme_name?: string;
/** 主题主色 */
primary_color: string;