mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 11:33:14 +00:00
fix: use pierre-dark theme for diff view in dark mode (#1450)
The Pierre diff view hardcoded the syntax-highlight theme to pierre-light, but the diff background follows the app theme (--ui-panel), so in dark mode light-theme token colors rendered on a dark background with poor contrast. Provide both light/dark Pierre themes and follow the document color-scheme via themeType "system". Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
This commit is contained in:
parent
1cd26dda53
commit
bf8407d39c
1 changed files with 2 additions and 1 deletions
|
|
@ -54,7 +54,8 @@ export const DIFF_UNSAFE_CSS = `
|
|||
`;
|
||||
|
||||
export const diffOptions = {
|
||||
theme: "pierre-light" as const,
|
||||
theme: { light: "pierre-light", dark: "pierre-dark" } as const,
|
||||
themeType: "system" as const,
|
||||
diffStyle: "unified" as const,
|
||||
overflow: "scroll" as const,
|
||||
disableFileHeader: true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue