# Custom button layouts

> In Buttons 1.9.2 a button can be built from layers of text, images, shapes and gauges, edited on a preview and restyled layer by layer from feedbacks.

The built-in button layouts (Text, Icon, Text 2, Gauge and the others) place a fixed set of things in fixed spots. From Buttons 1.9.2 a button can use a **custom layout** instead: a stack of layers you place yourself. A layer is a text, an image, a box, a circle, a line, a gauge, or a whole template, and each one has its own position, size, colour and opacity.

Use a custom layout when a template can't show what you need, for example a tally ring around a camera number, a level bar under a label, or a logo in one corner.

## Convert a button to a custom layout

1. Select the button in the position editor and open **Design**.
2. Under **Button Content**, set **Layout** to **Custom**.
3. Select **Convert** in the **Convert to custom layout** dialog.

The button's current template becomes the first layer, so the button looks exactly the same as before. You then add layers on top of it.

If the button has feedbacks that style it, the dialog says so: those feedbacks now style the template layer. A button whose steps set their own style, or whose repeater sets content per row, also gets a warning. A custom layout doesn't apply those settings yet. They are kept, and apply again if you switch back to a template.

![The Design tab of a button with a custom layout. Layout is set to Custom, the preview shows a red circle over the template's shield and Button text, the Layers list has Circle, Template and Canvas, and Circle properties show Drawing, Position and Size, Arc and Fill, and Border.](https://bitfocus.io/api/docs-media/file/layer-editor.png?prefix=docs-media)

## Layers

The **Custom Layout** section shows a large preview of the button and the **Layers** list. The list is drawn top to bottom: a layer higher up covers the ones below it. **Canvas** is always at the bottom. It is the button's background and can't be moved or removed.

Select **Add layer** to add one of these:

| Layer | What it draws |
| --- | --- |
| Text | A line or block of text, with its own font size, colour and alignment. Text that doesn't fit can scroll, as in the templates. |
| Image | An uploaded image or a library icon. A library icon takes a colour of its own. Animated GIFs play. |
| Fill layer | A colour over the whole button. |
| Box | A rectangle, with fill, rounded corners and a border. |
| Line | A straight line between two ends. |
| Circle | A circle or ellipse. Start and end angles turn it into an arc, and **Draw Slice** fills it like a pie slice. |
| Gauge | A level that follows a value between a minimum and a maximum: a horizontal or vertical bar, or a ring, with colour stops along the range. |
| Template | One of the built-in layouts, with its own content, as a layer. |
| Group | A container for other layers, so they move, scale and hide together. |

Select a layer to edit it under **properties**. Position and size are percentages of the button: **X %** and **Y %** place the layer's top-left corner, and **Width %** and **Height %** set its size. On a key that isn't square, such as a Stream Deck Studio key, the same percentages give a wider shape: a circle at 60 × 60 % becomes an oval.

Each property has a **√x** button on the right. It switches the property to an expression, so the value can come from a variable, for example a gauge level from a connection variable or a colour from a position variable.

When a connection's module provides its own graphic elements, they appear in **Add layer** too. A module element layer shows which connection it comes from and the element's name.

## Edit layers on the preview

You can work on the preview directly:

- **Click** a layer to select it. **Shift-click** adds a layer to the selection or takes it out. Dragging on empty space selects every layer the rectangle touches.
- **Drag** a selected layer to move it. With the preview focused, the **arrow keys** nudge the selection.
- **Drag a handle** to resize. Hold **Shift** to keep the proportions and **Option/Alt** to resize from the centre.
- **Drag the rotate handle** above a layer to turn it.
- **Drag either end** of a line to move that end.

While you move or resize, the layer snaps to the button's edges and centre lines and to other layers' edges and centres, and guides show where it snapped. Hold **Cmd/Ctrl** to turn snapping off for that move.

With several layers selected, **properties** shows the values they share and **Mixed** where they differ. A change applies to all of them.

## Arrange layers

Right-click a layer in the list for these commands. The keyboard shortcuts work in the list and on the preview.

| Command | Shortcut |
| --- | --- |
| Copy | Cmd/Ctrl+C |
| Cut | Cmd/Ctrl+X |
| Paste | Cmd/Ctrl+V |
| Duplicate | Cmd/Ctrl+D |
| Delete | Delete or Backspace |
| Rename | F2 or Enter |
| Group, Ungroup |  |
| Bring forward, Send backward, Bring to front, Send to back |  |

You can also drag a layer up or down the list, or into or out of a group. The eye icon hides a layer without removing it.

A custom layout button can be copied and pasted like any other button, also into another position, and keeps its layers.

## Change layers with feedbacks

A feedback on a custom layout button can change single layers while it is active. Add the feedback under **Feedbacks** as usual. Its panel then has a **Layer overrides** section:

- The **Template** layer is always listed, with the same editor a template button's feedback uses: content and button styling.
- **Add override** opens **Find a layer property...**, a list of every other layer's properties grouped by layer. Pick one, for example a Circle's **Color**, and set the value it takes while the feedback is active.

So a red tally can recolour only the ring around the camera number and leave the rest of the button alone.

## Presets and AI assistants

A module preset that provides a custom layout is imported as a custom layout button, with its layers.

An AI assistant connected over MCP can build and edit custom layout buttons too: add, change, restack, group and remove layers, place module elements, set layer overrides on feedbacks, and convert a button between a template and a custom layout. See [What an assistant can do](/docs/buttons/v1.10/mcp/what-an-assistant-can-do).

## Switch back to a template

Pick a template under **Layout** to leave the custom layout. If the layout is still only the template layer, the button keeps its content and feedback styling. If it has other layers, the **Switch back to a template** dialog warns that a template can't draw them: they are removed, along with every feedback's layer overrides, and only the content of the first template layer is kept.

## If you get stuck

| What you see | What to try |
| --- | --- |
| A circle is an oval on the hardware. | Width and height are percentages of the key. On a rectangular key, make the width smaller than the height to get a round circle. |
| A new layer doesn't show. | Check that it's above the layers that cover it in the list, that its eye icon isn't off, and that **Enabled** is ticked under **Drawing**. A white layer on a white template area is there but invisible. |
| A step's style or the repeater's per-row content stopped showing after converting. | A custom layout doesn't apply those yet. Switch back to a template to use them. |
| Snapping gets in the way. | Hold Cmd/Ctrl while you drag. |
