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:
Johannes du Plessis 2026-06-08 10:13:40 -07:00 • committed by GitHub
parent 1cd26dda53
commit bf8407d39c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,