• Mohamed Aziz Mejri's avatar
    Initial ui theming (#2145) · 22f25ef5
    Mohamed Aziz Mejri 提交于
    <!-- This is an auto-generated description by cubic. -->
    ---
    ## Summary by cubic
    Introduces initial UI theming with per-app theme selection and a default
    theme in settings. Theme rules are added to prompts so generated UIs
    follow the chosen design.
    
    - **New Features**
    - Theme picker in AuxiliaryActionsMenu with app-specific selection and
    visual check.
    - New hooks: useThemes and useAppTheme (React Query) with IPC get/set
    handlers.
    - Themes data and prompts added (includes “No Theme” and “Default
    Theme”).
    - Theme prompt appended to system and local-agent prompts; included in
    token counting.
    - Settings now support a default theme (selectedThemeId) applied to new
    apps.
    
    - **Migration**
      - Adds apps.theme_id (NULL means no theme).
    
    <sup>Written for commit f4ef96ccd02a3d9148bd4e570d2204c7b5a12c10.
    Summary will update on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > Introduces initial theming with persistence and prompt influence.
    > 
    > - UI: Adds Themes submenu in `AuxiliaryActionsMenu` (supports "No
    Theme" and `default`, app-specific or global via settings)
    > - Data/IPC: New `apps.theme_id` column (nullable), hooks
    `useThemes`/`useAppTheme`, IPC handlers (`get-themes`, `set-app-theme`,
    `get-app-theme`) wired through `ipc_client`, `ipc_host`, and `preload`
    > - Settings: Adds `selectedThemeId` with default applied to newly
    created apps
    > - Prompting: Appends theme prompt (`getThemePrompt`) to
    system/local-agent prompts and token counting
    > - Integration: `ChatInput` passes `appId` to menu; `schema.ts` updated
    > - Tests: E2E verifies default and per-app theme persistence
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    ee9ba34aad48f8dc49013e01247cfdcff1b77fad. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    22f25ef5
名称
最后提交
最后更新
..
AgentConsentBanner.tsx 正在载入提交数据...
AttachmentsList.tsx 正在载入提交数据...
AuxiliaryActionsMenu.tsx 正在载入提交数据...
ChatActivity.tsx 正在载入提交数据...
ChatError.tsx 正在载入提交数据...
ChatErrorBox.tsx 正在载入提交数据...
ChatHeader.tsx 正在载入提交数据...
ChatInput.tsx 正在载入提交数据...
ChatMessage.tsx 正在载入提交数据...
CodeHighlight.tsx 正在载入提交数据...
ContextLimitBanner.tsx 正在载入提交数据...
DeleteChatDialog.tsx 正在载入提交数据...
DragDropOverlay.tsx 正在载入提交数据...
DyadAddDependency.tsx 正在载入提交数据...
DyadAddIntegration.tsx 正在载入提交数据...
DyadCodeSearch.tsx 正在载入提交数据...
DyadCodeSearchResult.tsx 正在载入提交数据...
DyadCodebaseContext.tsx 正在载入提交数据...
DyadDatabaseSchema.tsx 正在载入提交数据...
DyadDelete.tsx 正在载入提交数据...
DyadEdit.tsx 正在载入提交数据...
DyadExecuteSql.tsx 正在载入提交数据...
DyadGrep.tsx 正在载入提交数据...
DyadListFiles.tsx 正在载入提交数据...
DyadLogs.tsx 正在载入提交数据...
DyadMarkdownParser.tsx 正在载入提交数据...
DyadMcpToolCall.tsx 正在载入提交数据...
DyadMcpToolResult.tsx 正在载入提交数据...
DyadOutput.tsx 正在载入提交数据...
DyadProblemSummary.tsx 正在载入提交数据...
DyadRead.tsx 正在载入提交数据...
DyadRename.tsx 正在载入提交数据...
DyadSearchReplace.tsx 正在载入提交数据...
DyadStatus.tsx 正在载入提交数据...
DyadSupabaseProjectInfo.tsx 正在载入提交数据...
DyadSupabaseTableSchema.tsx 正在载入提交数据...
DyadThink.tsx 正在载入提交数据...
DyadTokenSavings.tsx 正在载入提交数据...
DyadWebCrawl.tsx 正在载入提交数据...
DyadWebSearch.tsx 正在载入提交数据...
DyadWebSearchResult.tsx 正在载入提交数据...
DyadWrite.tsx 正在载入提交数据...
FileAttachmentDropdown.tsx 正在载入提交数据...
FixAllErrorsButton.tsx 正在载入提交数据...
HomeChatInput.tsx 正在载入提交数据...
LexicalChatInput.tsx 正在载入提交数据...
MessagesList.tsx 正在载入提交数据...
PromoMessage.tsx 正在载入提交数据...
RenameChatDialog.tsx 正在载入提交数据...
SelectedComponentDisplay.tsx 正在载入提交数据...
SummarizeInNewChatButton.tsx 正在载入提交数据...
TodoList.tsx 正在载入提交数据...
TokenBar.tsx 正在载入提交数据...
VersionPane.tsx 正在载入提交数据...
monaco.ts 正在载入提交数据...
stateTypes.ts 正在载入提交数据...
types.d.ts 正在载入提交数据...