mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
- Vendor the 36 OpenCode theme palettes into the shared package, synced from the pinned OpenCode release tag via pnpm themes:sync. - Add a colorTheme user preference across the settings schema, defaults, and the assistant internal API. - Extend palettes with success, warning, info, and diff colors, and add a resolver that maps palettes to CSS tokens and applies them to the DOM. - Apply the theme app-wide through a ThemeProvider context, adopting the tokens in message, repo, session, and settings components, agent colors, git status styles, and diff viewers. - Add a theme picker to General settings and make model quick-select follow the active theme (fixes #355).
30 lines
774 B
TypeScript
30 lines
774 B
TypeScript
export const GIT_STATUS_COLORS = {
|
|
modified: 'text-warning',
|
|
added: 'text-success',
|
|
deleted: 'text-destructive',
|
|
renamed: 'text-info',
|
|
untracked: 'text-muted-foreground',
|
|
copied: 'text-success',
|
|
} as const
|
|
|
|
export const GIT_UI_COLORS = {
|
|
ahead: 'text-success',
|
|
behind: 'text-warning',
|
|
current: 'text-highlight',
|
|
remote: 'text-info',
|
|
stage: 'text-success',
|
|
unstage: 'text-destructive',
|
|
stagedBadge: 'bg-success/10 text-success dark:bg-success/20',
|
|
unpushed: 'bg-info/10 text-info dark:bg-info/20',
|
|
pushed: 'bg-primary/10 text-primary dark:bg-primary/20',
|
|
} as const
|
|
|
|
export const GIT_STATUS_LABELS = {
|
|
modified: 'Modified',
|
|
added: 'Added',
|
|
deleted: 'Deleted',
|
|
renamed: 'Renamed',
|
|
untracked: 'Untracked',
|
|
copied: 'Copied',
|
|
} as const
|