# A button can be set to "flat" but can a buttonarray?

**URL:** <https://forum.godotengine.org/t/a-button-can-be-set-to-flat-but-can-a-buttonarray/31177>\
**Category:** Archive\
**Created:** [November 18, 2016, 3:45am UTC](https://forum.godotengine.org/t/a-button-can-be-set-to-flat-but-can-a-buttonarray/31177 "2016-11-18T03:45:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum.godotengine.org/uploads/default/original/2X/4/4b0a7fa8a6334634b94a13d421f0d99e6f04e21f.svg) [@system](https://forum.godotengine.org/u/system)\
**Post date:** [November 18, 2016, 3:45am UTC](https://forum.godotengine.org/t/a-button-can-be-set-to-flat-but-can-a-buttonarray/31177/1 "2016-11-18T03:45:37Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Attention** | Topic was automatically imported from the old Question2Answer platform. |
| 👤 | **Asked&nbsp;By** | Robster |
| ⚠ | **Old&nbsp;Version** | Published before Godot 3 was released. |

Hi all,

So far I can’t seem to find a setting that allows it, but I know there’s some clever types here so thought I’d risk asking.

Can a `buttonArray` be set to `flat`?

---

<div class="post-metadata">

**Author:** ![system](https://forum.godotengine.org/uploads/default/original/2X/4/4b0a7fa8a6334634b94a13d421f0d99e6f04e21f.svg) [@system](https://forum.godotengine.org/u/system)\
**Post date:** [November 20, 2023, 11:59pm UTC](https://forum.godotengine.org/t/a-button-can-be-set-to-flat-but-can-a-buttonarray/31177/2 "2023-11-20T23:59:23Z")

</div>

Archived on November 20, 2023, 11:59pm UTC



---

<div class="post-metadata">

**Author:** ![system](https://forum.godotengine.org/uploads/default/original/2X/4/4b0a7fa8a6334634b94a13d421f0d99e6f04e21f.svg) [@system](https://forum.godotengine.org/u/system)\
**Post date:** [November 20, 2023, 11:59pm UTC](https://forum.godotengine.org/t/a-button-can-be-set-to-flat-but-can-a-buttonarray/31177/3 "2023-11-20T23:59:23Z")

</div>

Unlisted on November 20, 2023, 11:59pm UTC



---

<div class="post-metadata">

**Author:** ![system](https://forum.godotengine.org/uploads/default/original/2X/4/4b0a7fa8a6334634b94a13d421f0d99e6f04e21f.svg) [@system](https://forum.godotengine.org/u/system)\
**Post date:** [November 23, 2016, 9:31am UTC](https://forum.godotengine.org/t/a-button-can-be-set-to-flat-but-can-a-buttonarray/31177/4 "2016-11-23T09:31:52Z")

</div>

| | | |
| --- | --- | --- |
| 👤 | **Reply From:** | Rasmus |

You can do this by creating a theme and apply it to the ‘buttonArray’ so all the child buttons inherit the style set in the theme.

Take a look at [http://docs.godotengine.org/en/latest/tutorials/2d/gui\_skinning.html#creating-a-theme](http://docs.godotengine.org/en/latest/tutorials/2d/gui_skinning.html#creating-a-theme)

- Create a theme
- Add Class items ‘Button’
- Change the ‘Styles’ to StyleBoxFlat

Thank you very much. It seems like a workaround and it’s not ideal but thank you for the answer. It can get me through at least. Much appreciated.

Robster | 2016-11-25 21:35

It is not a workaround, it is a fully intentional part of the UI design of Godot.  
Creating custom themes is pretty nice imo.

Rasmus | 2016-11-25 21:47

You are correct of course, it’s just not consistent seeing as the normal button can do this but the buttonarray can’t. I put in a git request and they’ve resolved it now for the upcoming 3.0 build.

Robster | 2016-11-30 06:54
