Skip to content

/export ignores theme.export.pageBg in HTML export #2565

@jwu

Description

@jwu

What happened?

When exporting a session with /export, the generated HTML does not use the theme’s export.pageBg value. From the code, export.cardBg and export.infoBg also appear to be ignored.

The export code reads these theme values, but the final HTML backgrounds are still derived from userMessageBg instead of using the explicit export colors.

Steps to reproduce

  1. Create or modify a theme with a clearly distinct
    export.pageBg value:
      {
        "export": {
          "pageBg": "#ff00ff"
        }
      }
  2. Start pi with that theme active.
  3. Run /export.
  4. Open the exported HTML file.

Expected behavior

The exported HTML page background should use theme.export.pageBg exactly, rather than a derived color.

Version

0.62.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginprogressIssue is being worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions