mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-04 13:42:16 +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 = {
|
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,
|
diffStyle: "unified" as const,
|
||||||
overflow: "scroll" as const,
|
overflow: "scroll" as const,
|
||||||
disableFileHeader: true,
|
disableFileHeader: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue