• 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
名称
最后提交
最后更新
..
meta 正在载入提交数据...
0000_nebulous_proemial_gods.sql 正在载入提交数据...
0001_hesitant_roland_deschain.sql 正在载入提交数据...
0002_unique_morlocks.sql 正在载入提交数据...
0003_open_bucky.sql 正在载入提交数据...
0004_flawless_jigsaw.sql 正在载入提交数据...
0005_clumsy_namor.sql 正在载入提交数据...
0006_mushy_squirrel_girl.sql 正在载入提交数据...
0007_dapper_overlord.sql 正在载入提交数据...
0008_medical_vulcan.sql 正在载入提交数据...
0009_previous_misty_knight.sql 正在载入提交数据...
0010_nappy_fat_cobra.sql 正在载入提交数据...
0011_light_zeigeist.sql 正在载入提交数据...
0012_bouncy_fenris.sql 正在载入提交数据...
0013_damp_mephistopheles.sql 正在载入提交数据...
0014_needy_vertigo.sql 正在载入提交数据...
0015_complete_old_lace.sql 正在载入提交数据...
0016_petite_thanos.sql 正在载入提交数据...
0017_sharp_corsair.sql 正在载入提交数据...
0018_skinny_ezekiel.sql 正在载入提交数据...
0019_cute_carnage.sql 正在载入提交数据...
0020_nebulous_patch.sql 正在载入提交数据...
0021_kind_luckman.sql 正在载入提交数据...