Here is a basic patch that does two major things:

1.) Adds a special class for the current selected layout which can be used by themers for additional customization of the new choose layout screen

2.) Hides the layout selection widget in cases where there is only one category to choose from

Comments

merlinofchaos’s picture

Status: Needs review » Fixed

I cleaned this up a bit and committed. Using layout['theme'] to identify a layout is wrong, that doesn't necessarily match the name. $layout['name'] is always good, however.

It adds a class but there's no CSS tied to that class -- was that supposed to be in this patch?

populist’s picture

The current-layout class was added for future theme/design improvements to that interface. The only CSS I could think of is to make that background have a different color, but that needs some more testing/standardization. Thanks for the commit!

Status: Fixed » Closed (fixed)

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

  • Commit 7aff153 on 7.x-3.x, 7.x-3.x-i18n, 8.x-3.x by merlinofchaos:
    Issue #1477778: Improve layout selector UX.