Motivation

In a decoupled context, it makes sense to use the Gin admin theme for all pages, not just admin pages.

However, this does not suite canvas. For the canvas routes and previews we want a different theme, i.e. stark or lupus_stark.

Proposed resolution

- Build upon the _theme negotiator for routes that we added for forms already
- Add configuration option to select the "Canvas Pages" theme. At /admin/appearance add a fieldset for "Canvas Theme" like we have Administration theme, with theme select.
- Add a lupus_decoupled_canvas sub-module. it shall depend on canvas_extjs + implement the theme changes
- Test coverage: Use kernel test on request/response layer to ensure theme switch works

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fago created an issue. See original summary.

fago’s picture

Status: Active » Needs review

ready. we probably should add some usage-docs for canvas in general to the readme also.

fago’s picture

Status: Needs review » Reviewed & tested by the community

Works well. I figured the feature is missing for forms, we have been using it like this for a while at drunomics already. So while adding the theme-switch feature, let's also add it to forms. The change introduces a new setting in the lupus-decoupled settings form to configure the theme + a basic canvas sub-module for enabling it on canvas editor routes.

For adding better canvas docs, let's add its own issue.

  • fago committed f8fa22fb on 1.x
    feat: #3573944 Add configurable theme switching for forms and canvas...
fago’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

fago’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.