wip: 主题系统与设置面板改动 checkpoint

This commit is contained in:
Rick Ye
2026-09-07 01:21:21 +08:00
parent f8c785afbc
commit 100de55714
12 changed files with 162 additions and 21 deletions
+5
View File
@@ -147,6 +147,11 @@ export function registerIpc(): AgentService {
return pass(() => service.setSystemPrompt(text))
})
ipcMain.handle('settings:setTheme', (_event, id: unknown) => {
if (typeof id !== 'string' || !id.trim()) throw new Error('invalid theme id')
service.setThemeColor(id.trim())
})
// ---- 工作区 ----
ipcMain.handle('workspaces:list', () =>
service.listWorkspaces().catch((err: unknown) => {