Skip to content

[Feature]: A layout's page takes a colour #2855

Done

Description

@jgregoriorincon

What problem does this solve?
A layout's page is always white: the layout view and the PNG, PDF and SVG exports paint it white
before any element. A map on a dark or tinted page needs a rectangle the size of the sheet, sent
behind everything else. That rectangle is caught by clicks and selection boxes, has to be resized by
hand when the page size changes, and is one more element to keep track of in every such layout.

Proposed solution

  • layout.page takes "color": "#RRGGBB", and null to make the page white again. Its answer gives
    the colour back.
  • The colour is kept with the layout, and left out when the page is white, so layouts saved before
    keep their bytes.
  • It is painted under every element in the layout view, the PNG/JPEG, PDF and SVG exports, every
    page of a map series, and the web download. layout.duplicate, layout.save and layout.import
    keep it.
  • Page Setup gets a colour button.
  • A project with a coloured page lists the capability in requires, so an older reader refuses it
    by name instead of opening it white.
  • Out of scope: transparency (a PNG with a see-through page); the Poster style of Publication
    Layout keeps drawing its own background, so existing layouts don't change.

Estimated scope
Small: the layout model (one field), the page fill in render and SVG, layout.page, Page Setup,
capabilities and schema, the user guide. About 200 lines, one PR.

Alternatives considered

Activity

  1. added
    enhancement
    on Nov 24, 2026
  2. jgregoriorincon commented on Nov 24, 2026

    @jgregoriorincon
    ContributorAuthor

    I'm working on this.

  3. added a commit that references this issue on Nov 25, 2026
    8b60c60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions